View Column showing parent tasks only as list | Community
Skip to main content
Level 2
February 17, 2023
Solved

View Column showing parent tasks only as list

  • February 17, 2023
  • 1 reply
  • 1716 views

On a Report View Column I only want to show the parent task name and not every single subtask how do I write that?
listmethod=nested(tasks,indent).lists. (WRONG)

 

displayname=Project Tasks Names
listdelimiter=<p>
listmethod=nested(tasks).lists.  (WORKS FINE)
textmode=true
type=iterate
valuefield=name
valueformat=HTML

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by William--

You need to replace valuefield with a valueexpression that will only list parent tasks.

displayname=Parent Tasks listdelimiter=<div> listmethod=nested(tasks).lists textmode=true type=iterate valueexpression=IF({numberOfChildren}>0,{name},"") valueformat=HTML

 

1 reply

William--
Community Advisor
William--Community AdvisorAccepted solution
Community Advisor
February 17, 2023

You need to replace valuefield with a valueexpression that will only list parent tasks.

displayname=Parent Tasks listdelimiter=<div> listmethod=nested(tasks).lists textmode=true type=iterate valueexpression=IF({numberOfChildren}>0,{name},"") valueformat=HTML

 

If you like my content, please take a moment to view and vote on my Idea Requests: https://tinyurl.com/4rbpr7hf
Tom2600Author
Level 2
February 17, 2023

Thank you,  that somewhat worked BUT if I have a project that has 3 tasks & 2 without any subtasks then it returns null fro 5 &6?
(5 & 6) are Parent Tasks without any subtasks

 

 

William--
Community Advisor
Community Advisor
February 17, 2023

If you want to list parent tasks as well as tasks without children, this will work:

displayname=Parent Tasks listdelimiter=<div> listmethod=nested(tasks).lists textmode=true type=iterate valueexpression=IF(ISBLANK({parentID}),{name},"") valueformat=HTML

 

If you like my content, please take a moment to view and vote on my Idea Requests: https://tinyurl.com/4rbpr7hf