Expand my Community achievements bar.

Join us LIVE in San Francisco on November 14th for Experience Makers The Skill Exchange. Don't miss out on this free learning event!
SOLVED

Remove standard data from certain tasks on a project.

Avatar

Level 8

I would like to not display the status option for my parent tasks on a project. Can I build this out with a custom view? Can I accomplish this with an IF statement? Something else?

As you can see in the screenshot below my parent tasks do not have assignments. I don't want them to display a status option either. Help? 0694X00000C0o7JQAR.png

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 7

Hi Samantha,

This worked for me to create a new View that does not show the status of parent tasks.

displayname=Status

enumclass=com.attask.common.constants.TaskStatusEnum

enumtype=TASK

linkedname=direct

namekey=status

querysort=status

textmode=true

type=enum

valueexpression=IF({numberOfChildren}=0, {status})

valueformat=customDataLabelAsString

Hope this helps,

Teale

View solution in original post

4 Replies

Avatar

Correct answer by
Level 7

Hi Samantha,

This worked for me to create a new View that does not show the status of parent tasks.

displayname=Status

enumclass=com.attask.common.constants.TaskStatusEnum

enumtype=TASK

linkedname=direct

namekey=status

querysort=status

textmode=true

type=enum

valueexpression=IF({numberOfChildren}=0, {status})

valueformat=customDataLabelAsString

Hope this helps,

Teale

Avatar

Level 10

Hi @Teale McCleaf‚

Thanks for sharing this code, it works really. But can we do same for the assignments for parent task. Since, many places user add their name even recommendation of best practices? Also thanks to @Samantha Isin‚ for asking this question.

Mvh

Kundan.

Avatar

Level 7

Hi Kundan,

You can use the same code and change the 'number of children' value to >0 and the results will only show parent tasks.

displayname=Status

enumclass=com.attask.common.constants.TaskStatusEnum

enumtype=TASK

linkedname=direct

namekey=status

querysort=status

textmode=true

type=enum

valueexpression=IF({numberOfChildren}>0, {assignmentsListString})

valueformat=customDataLabelAsString

Use assignmentsListString for all assignees or assignedToID for the Primary Owner.

Best -

Teale