How to display subtasks in a list

Discuss problems installing or using TrackStudio.

How to display subtasks in a list

Postby ssharma » Wed Jan 29, 2014 9:59 pm

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.
ssharma
 
Posts: 38
Joined: Wed Jan 31, 2007 10:22 pm

Re: How to display subtasks in a list

Postby Petr » Thu Jan 30, 2014 10:00 am

Hello.
You can use calculated scripts for UDF.
Учи Java и ищи работу вместе с www.job4j.ru
Petr
 
Posts: 2914
Joined: Wed Aug 12, 2009 4:38 pm

Re: How to display subtasks in a list

Postby ssharma » Fri Jan 31, 2014 6:30 pm

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!
ssharma
 
Posts: 38
Joined: Wed Jan 31, 2007 10:22 pm

Re: How to display subtasks in a list

Postby Petr » Mon Feb 03, 2014 9:24 am

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
Учи Java и ищи работу вместе с www.job4j.ru
Petr
 
Posts: 2914
Joined: Wed Aug 12, 2009 4:38 pm

Re: How to display subtasks in a list

Postby ssharma » Wed Feb 05, 2014 10:31 pm

Thanks Petr! That worked.
ssharma
 
Posts: 38
Joined: Wed Jan 31, 2007 10:22 pm

Re: How to display subtasks in a list

Postby ssharma » Thu Feb 06, 2014 12:09 am

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.
ssharma
 
Posts: 38
Joined: Wed Jan 31, 2007 10:22 pm

Re: How to display subtasks in a list

Postby Petr » Thu Feb 06, 2014 6:31 pm

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.
Учи Java и ищи работу вместе с www.job4j.ru
Petr
 
Posts: 2914
Joined: Wed Aug 12, 2009 4:38 pm

Re: How to display subtasks in a list

Postby ssharma » Wed Mar 05, 2014 6:00 pm

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
ssharma
 
Posts: 38
Joined: Wed Jan 31, 2007 10:22 pm


Return to TrackStudio Support

Who is online

Users browsing this forum: No registered users and 0 guests

cron