Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

count only not the parent task

RyoyaFukuda
Tera Contributor

Hi all.
I would like to count and tally only the project tasks that are not the parent task and and display it as a report.
I would appreciate help on how this can be implemented.

2 REPLIES 2

Mark Manders
Mega Patron

Probably missing something in your requirement, because this sounds like a simple 'parent = empty' condition?

 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

In a case like parent - child - grandchild, I think that only "parent = empty" would count the child as well.

For example, in the following structure, I want to count only "D,F,I,K".

A-B-C-D

  â””E-F
  â””G-H-I
            â””J-K