Whenever you try to create a subtask, the Parent Tasklist with which you choose the parent task lists all tasks and subtasks equally. Say you have
Main tasklist
- Task 1
-- My task
-Task 2
-- Your task
and you wish to create a new subtask under 'My task'. When you try to create a new sub task, the 'Parent Tasklist' list shows
Main tasklist
Task 1
My Task
Task 2
Your Task
without any indentations or any indication that Task 1 is a subtask of the Main tasklist etc (in fact I believe the listing is random and does not even put say My Task under Task 1)
Comments
Comment #1
scor commentedThis patch doesn't exactly fix your problem, but it might prevent it in most cases.
When you click on the link 'Add new sub-task', the parent task will be selected by default.
Also, I added a alphabetical sorting rule for the user list, which is otherwise very messy when you have lots of users.
Patch is against HEAD. Could be ported to 4.7 if necessary.
Comment #2
scor commentedthis patch has been committed to HEAD. Nevertheless, some more work needs to be done on the parent tasklist list.
Comment #3
moonray commentedYou might want to look at some of the code used to create the tree in tasks_advanced. It might be helpful in creating a fast tree-like structure.
Otherwise taxonomy also has terms and subterms which show up indented in the drop down list.