This article focuses on using integer-based progress calculations between child and parent items. While child items will allow for manual input of progress as percentages (0-100), parent items automatically calculate their progress as an average of the child items. This approach makes it easier to track and manage progress across hierarchical work items.
Setting up progress calculation
Create custom fields
Add a custom progress field for both parent and child item types and set the field type to Integer.
Add calculated field for parent item
Use the same custom field ID you created earlier.
Set the calculation to Average.
Choose the same custom field as the source field.
In Field from section select Child Field to pull data from child Work Package items.
Adjust progress for parent items
To align the calculated progress add the following script to the Item Script section:
if(wi.getType().getId()==="epic"){
task.setProgress(task.getProgress()/100);
}
Optional: Remove dragging of parent items
If you want to prevent users from dragging progress for parents while keeping this functionality enabled for children, add this snippet to the Script - Block on your Gantt page:
<style>
.gantt_bar_project .gantt_task_progress_drag{
display:none !important;
}
</style>
For further assistance or troubleshooting, feel free to contact [email protected]
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article