How Plan Progress Works
In the Plans Gantt, plan bars do not have a built-in progress calculation. You use an Item Script to query work items assigned to each plan, compute a completion ratio, and display it on the Gantt chart. The script runs server-side for each plan item, calculating progress as the ratio of resolved work items to total work items in the plan.Step 1: Add the Gantt Config Script
Open the Plans Gantt widget parameters and navigate to Advanced > Gantt Config Script. Add the following script to display progress as right-side text on each plan bar:Step 2: Add the Item Script
Navigate to Advanced > Item Script and add the server-side computation:- Queries all work items assigned to the current plan
- Queries work items with a resolution (resolved items)
- Computes progress as the ratio of resolved to total
- Stores a human-readable string for display
Step 3: Derive Work Item Schedule from Plans
If work items under your plans are unplanned (no start/end dates), you can derive their schedule from the plan assignment. Add this to the Item Script section of your Work Items configuration:Customizing the Progress Query
You can adjust the progress calculation by modifying the Lucene query in the item script. For example, to count only items with status “done” instead of any resolution:Verification
You should now see progress percentages displayed to the right of each plan bar in the Plans Gantt, showing text like “Progress: 75% (3 / 4 done)”. Plans with no assigned work items show no progress text.See Also
- Show Plans and Work Items Together
- Track and Calculate Progress
- Calculate Progress with Scripts
- Write Item Scripts
- Derive Schedule from Polarion Plans
Sources
Sources
KB Articles
- API Example: Compute Plan Progress for Plans GANTT on the Server Using API
- Derive Schedule of a Work Item on Gantt from Assignment to a Polarion Plan
- Setup GANTT that shows Polarion Plans and Work Items
prod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/Rewritten Tests/testGanttCreatePlan.cy.tsprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/impl/CustomFieldService.javaprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/Rewritten Tests/testGanttPlansInInline.cy.tsprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/impl/WorkItemsGanttDataService.javaprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/GanttCreatePlan.cy.ts