Expand my Community achievements bar.

Got questions about Workfront Governance? Join our upcoming Ask Me Anything session on February 12th!
SOLVED

Conditional Formatting for Parent AND Grandparent Tasks

Avatar

Level 1

Hi all!

I'm customizing my project task-level view. I know that I can change the color of a parent or grandparent task's row by setting conditional formatting (task's Number of Children > 0). However, I'm looking to set parents and grandparents to different colors. The Number of Children variable tells you how many subtasks there are... not useful here. I need a variable that denotes the "level" of a task (ex. task=1, parent=2, grandparent=3, greatgrandparent=4). I'm fairly comfortable with text mode and API basics but just can't figure this one out

Extra credit portion: Ideally I'd like to flip parent+ task rows into white text on dark backgrounds, but rich text fields don't change color. Is there a way to override that?

Thanks in advance!!

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

 

Hi @Mikaela-Newell,

 

Since conditional formatting resolves top to bottom, you could start with a rule that checks for Number Of Children = 0 (and "does nothing special" for formatting), then sets the back color based upon the Index.

 

Regards,

Doug

View solution in original post

5 Replies

Avatar

Community Advisor

 

Hi @Mikaela-Newell,

 

One way is to conditionally format each Task's row based upon its "Indent" (ie the Level of indentation you were after), e.g. 4 = lightest blue, 3 = light blue, 2 = blue, etc.

 

To my knowledge, no bueno on the Rich Text formatting.

 

Regards,

Doug

A lot closer, but no cigar. I only want to highlight parents; using indent level highlights all tasks at a tier level, including non-parents.

Maybe there's a way to do something like "if indent level 0 AND next task indent level 1, then format"? And then duplicate that rule using 1,2 and 2,3?

Avatar

Correct answer by
Community Advisor

 

Hi @Mikaela-Newell,

 

Since conditional formatting resolves top to bottom, you could start with a rule that checks for Number Of Children = 0 (and "does nothing special" for formatting), then sets the back color based upon the Index.

 

Regards,

Doug

That did it!! For anyone curious, I've attached a screenshot of the conditional formatting rules on my Task column and how it shows in the project.

Thank you, Doug!!