Progress Data Model
The Gantt chart stores progress as a float value between0.0 (no progress) and 1.0 (complete). The progress column in the grid displays this as a percentage (0-100). The default Progress Field widget parameter is gantt_progress.
Calculate Progress from Time Estimates
This script computes progress astimeSpent / (remainingEstimate + timeSpent) and automatically sets resolved items to 100%.
In Widget Parameters > Advanced > Item Script:
Disable Progress Drag
When progress is computed automatically, disable manual progress adjustment. In Widget Parameters > Advanced > Gantt Config Script:Display Progress Text on Task Bars
Show the computed progress summary next to each task bar. In Gantt Config Script:Calculate Epic Progress from Children
For epic-level items where time estimates are derived from child stories:task.type = 'project' renders the epic as a summary bar with its schedule derived from children.
Calculate Plan Progress from Resolved Items
For Plans Gantt, compute progress as the ratio of resolved to total work items in a plan. In Item Script:The
plan variable is only available in the Plans Gantt Item Script. In the Work Items Gantt, use wi to access work item data instead.Verify Your Changes
Save the page and reload the Gantt chart. You should now see:- Task bars with progress fill matching the computed percentages
- Progress text displayed to the right of each task bar (if configured)
- The progress drag handle hidden (if
drag_progressis disabled)
See Also
- Track and Calculate Progress for manual progress tracking
- Configure Right-Side Text on Task Bars for template customization
- Write Item Scripts for Item Script fundamentals
- Compute Plan Progress for Plans Gantt progress
Sources
Sources
KB Articles
- Calculate item progress from time estimates
- API Example: Compute Plan Progress for Plans GANTT on the Server Using API
- Calculate Epic Progress
prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/Task.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/WorkItemsGanttWidget.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/columns/GanttSystemColumn.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/GanttWidgetConfig.javaprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/columns.js