Prerequisites
- A Gantt widget added to a Polarion LiveDoc or Wiki page
- Access to the widget parameter editor (Edit mode on the page)
Open the Config Script Editor
- Open the page containing your Gantt widget in edit mode.
- In the widget parameters panel, locate the Advanced section.
- Find the Gantt Config Script parameter and click to expand the script editor.
gantt.config.* properties you set here override system defaults and administration-level Configuration Properties for this specific widget instance.
Understand the Script Scope
The Gantt Config Script executes with access to these objects:| Object | Purpose |
|---|---|
gantt | The chart instance with gantt.config, gantt.templates, and event handlers |
config | The Nextedy configuration object with widget parameters and context |
Nextedy | The Nextedy singleton exposing markers, editors, and license info |
Common Configuration Patterns
Disable Progress Drag
Prevent users from adjusting progress by dragging the task bar fill:Set Custom Resolved Color
Override the default color for resolved work items while keeping progress-related coloring active:nextedy.gantt.default.progress_color_resolved.
Enable Square Task Borders
Switch from rounded to square task bar borders:Customize Right-Side Text
Display a custom label to the right of each task bar using therightside_text template:
Disable Auto-Scheduling
Turn off automatic date propagation for this chart instance:nextedy.gantt.default.auto_scheduling (default: false).
Configuration Properties Reference
Thesenextedy.gantt.* properties can be set in Administration > Configuration Properties as system-wide defaults:
| Property | Default | Purpose |
|---|---|---|
nextedy.gantt.default.auto_scheduling | false | Enable auto-scheduling |
nextedy.gantt.default.critical_path | false | Show critical path |
nextedy.gantt.config.squareTaskBorder | false | Square task borders |
nextedy.gantt.workitems.unplanned_color | #7D3C98 | Unplanned item color |
nextedy.gantt.today.color | gray | Today marker color |
nextedy.gantt.debug | false | Enable debug messages |
Handle Script Errors
When the Gantt Config Script contains a syntax or runtime error, the chart displays a warning indicator in the footer. In edit mode, clicking the indicator shows the error details prefixed with Config Script Error:. In view mode, a triangle icon appears as a warning. Check the browser console for detailed error messages. See Debug Script Errors for a systematic debugging approach.Verify Your Changes
After saving the page, reload the Gantt chart. You should now see your configuration changes reflected:- Modified task bar styles or colors appear immediately
- Template changes (right-side text, tooltips) render with each task bar
- Disabled features (drag progress, auto-scheduling) no longer respond to user interaction
See Also
- Write Item Scripts for per-task customization
- Write Page Scripts with Velocity for server-side pre-processing
- Color Logic Script Examples for color customization patterns
- Customize Progress-Related Coloring for progress color configuration
- Debug Script Errors for troubleshooting script issues
Sources
Sources
KB Articles
- Gantt configuration index
- Gantt - Configuration Properties and default values
- Customizing Progress-Related Coloring in the Gantt Chart
prod-gantt-src/com.nextedy.polarion.gantt/src/com/nextedy/polarion/gantt/widget/PlansGanttWidget.javaprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/scripts.jsprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/config.jsprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/nextedy.jsprod-gantt-src/com.nextedy.polarion.gantt.client/src/js/default.json