Page 1 of 1
How to display subtasks in a list
Posted:
Wed Jan 29, 2014 9:59 pm
by ssharma
Hi Friends!
Is there a way to display all nested subtasks for a task on the same page as the parent task? Usually you need to click on the parent task and then its subtasks are displayed.
Thanks,
Shiv.
Re: How to display subtasks in a list
Posted:
Thu Jan 30, 2014 10:00 am
by Petr
Hello.
You can use calculated scripts for UDF.
Re: How to display subtasks in a list
Posted:
Fri Jan 31, 2014 6:30 pm
by ssharma
Hi Petr!
Sorry, can you please explain further about using UDF for this purpose?
Also, when I use a filter with "Deep Search" option, I see the subtasks also. Is there a way I can display parent task number for the subtasks? That will be sufficient for my purpose.
Thanks!
Re: How to display subtasks in a list
Posted:
Mon Feb 03, 2014 9:24 am
by Petr
You create a user defined field (UDF) with type Text. Then you write the script and locate it in the etc/plugins/scripts/task_custom_field_value directory
For example: This script returns the name and number of parent task.
- Code: Select all
return task.getParent().getName() + " [#" + task.getParent().getNumber() + "]";
Then when you go to view task this UDF will be filled by script with this value.
About the second question. You point this UDF in filter settings
Re: How to display subtasks in a list
Posted:
Wed Feb 05, 2014 10:31 pm
by ssharma
Thanks Petr! That worked.
Re: How to display subtasks in a list
Posted:
Thu Feb 06, 2014 12:09 am
by ssharma
Hi Petr,
Sorry to bug you again. Is it possible to change the order of the columns in a filter, e.g., I want the "Parent Task" UDF displayed immediately after Task Name.
Currently the order is fixed. The main fields (i.e., task#, task name, state, priority, submitter, assignee) come first and the UDFs come later.
Thanks,
Shiv.
Re: How to display subtasks in a list
Posted:
Thu Feb 06, 2014 6:31 pm
by Petr
it is not possible in current version, but we have few tasks connected to add this feature in future version.
You can use dashboards. It is workaround.
Re: How to display subtasks in a list
Posted:
Wed Mar 05, 2014 6:00 pm
by ssharma
Hi Petr,
Further, is it possible to display child tasks immediately after their parent task and indented, e.g.,
parent task #1
child 1 of #1
child 2 of #1
child 3 of #1
parent task #2
child 1 of #2
child 2 of #2
child 3 of #2