Show accumulated duration hr in-bar text

Hi, i would like to show the accumulated duration hour for each child as a parent row.

The example is here. So instead of showing 8hr in USP00011954 level, it should be 13 hr(5+8). Is it possible to realize this text change function? Thanks!

Yes, it is possible to do that.
You need to check if the task has children and iterate each child that belongs to that task. The value for hours stored in a variable. The returned value is used in the grid and the task text template. Here is the snippet:

got it, thank your help Ramil!