Count all items in the Resource load

Modified on Thu, 5 Dec at 1:37 PM

By default, only last-level child items are counted as a load for assignees in the Resource load, but you may find it useful to have higher-level items to be counted as well. 


- How to enable:

To enable this functionality put the following script in Widget Properties -> Gantt Config Script:


nextedy.gantt.config.onlyNonLeafTasks=false

IMPORTANT!: from version 23.8.7 the script has changed to

nextedy.gantt.config.onlyLeafTasks=false


Note: only WIs with Item Gantt Presentation Mode may be loaded currently.



- Example:

In our example, there is the Gantt structure: Feature -> Work Package -> Task; with the following scheduling:


Feature = Derived from children;

Work Package = Item;

Task = Item;


  • Only last level Items are shown on the Resource view:

As you can see only Tasks and Work Packages with no children are loaded.


To make all Work packages to be counted in the Resource view you should put the following script in Widget Properties -> Gantt Config Script:

nextedy.gantt.config.onlyLeafTasks=false;
  • All Items are counted on the Resource view:



- How to skip count of some items: 

If you want to skip calculations for any Work item based on any specific condition you can set task.load=0 in the Item Script.

For example, if you want to keep only Work Packages to be counted on the resource view you can add the following script into the Item Script:


if(wi.getType().getId()==="task") {
      task.load=0;
}

 




In case of questions please contact us at support@nextedy.com


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article