Skip to main content

Guides in This Section

Write Item Scripts --- Learn the basics of server-side item scripts, including the task and wi variables, reading work item fields, and passing custom data to the client. Write Gantt Config Scripts --- Configure chart behavior at load time using JavaScript snippets in the Advanced > Gantt Config Script parameter. Write Page Scripts with Velocity --- Use Apache Velocity templates to query Polarion data and inject dynamic content into the Gantt page. Color Logic Script Examples --- Apply custom color logic to task bars based on work item fields, status, or priority. Calculate Progress with Scripts --- Override the default progress calculation with custom formulas that aggregate child task data. Create Markers with Scripts --- Add custom vertical markers to the Gantt timeline using the markers scripting API. Migrate Scripts for Polarion 2304+ --- Update existing scripts to work with the breaking API changes introduced in Polarion 2304 and later. Debug Script Errors --- Diagnose and fix common script errors using the Gantt error indicator and browser developer tools.
If you are new to Gantt scripting, begin with Write Item Scripts to understand the core task and wi variables. Most customizations build on this foundation.
KB ArticlesSupport TicketsSource Code
  • prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/types/TypesConfig.java
  • prod-gantt-src/com.nextedy.polarion.gantt.client/src/js/nextedy.js
  • prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/impl/ScriptEvaluator.java
  • prod-gantt-src/com.nextedy.polarion.gantt.client/src/js/scripts.js
  • prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/model/impl/AbstractBaseGanttDataService.java