Prerequisites
- A working Nextedy GANTT widget with Plans configured
- Work items assigned to Polarion Plans (iterations, releases)
- Access to Widget Parameters > Advanced > Item Script
Option 1: Derive Schedule from Plans Using Item Script
When you need a work item’s dates to come from its plan assignment rather than from its own date fields, add the following to Widget Parameters > Advanced > Item Script:Iteration template, and copies the plan’s start and due dates onto the task bar.
Option 2: Use the Utility Method for Unplanned Items
For work items that have no dates set, use the built-inderiveScheduleFromPlans utility method in your item script:
Option 3: Automatic Sync with syncToPlans
You can configure the Gantt to automatically keep work item plan membership in sync when dates are edited. In Widget Parameters > Work Item Types Configuration, enable Sync to Plans for the relevant work item type. WhensyncToPlans is enabled, saving a task in the Gantt automatically adds or removes the work item from overlapping Polarion Plans that match the configured plan templates.
| Configuration | Location | Effect |
|---|---|---|
| Item Script (derive dates) | Widget Parameters > Advanced > Item Script | Copies plan dates onto work item display |
deriveScheduleFromPlans() | Item Script utility method | Sets dates for unplanned items from matching plan |
| Sync to Plans | Work Item Types Configuration | Auto-updates plan membership on save |
Verify
After configuring one of the above methods, reload the Gantt chart. You should now see work items positioned on the timeline according to their assigned plan dates. Unplanned items should display at their plan’s date range, and items withsyncToPlans enabled should automatically update plan membership when you drag and save them.
See also
- Derive Schedule from Polarion Plans
- Show Plans and Work Items Together
- Configure Multiple Plan Levels
- Write Item Scripts
Sources
Sources
KB Articles
- Derive Schedule of a Work Item on Gantt from Assignment to a Polarion Plan
- Work Item Calendar
- How to show the difference of actual vs initial schedule
prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/impl/AbstractBaseGanttDataService.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/Task.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/impl/WorkItemsGanttDataService.javaprod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/PlansGanttWidget.java