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)

CommentFileSizeAuthor
#1 tasks.newtask.66865.patch939 bytesscor

Comments

scor’s picture

Version: 4.7.x-1.x-dev » master
Status: Active » Reviewed & tested by the community
StatusFileSize
new939 bytes

This 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.

scor’s picture

Status: Reviewed & tested by the community » Active

this patch has been committed to HEAD. Nevertheless, some more work needs to be done on the parent tasklist list.

moonray’s picture

You 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.