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: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:
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