What Changed
Since Polarion version 2304, the scripting engine used by the Gantt widget has been updated. Scripts that use direct property access on Polarion objects (such as wi.type.id or wi.status.id) no longer work as expected. You must update these to use getter methods.
If your Gantt configuration uses item scripts or configuration scripts, you may encounter errors like:
Migration Steps
Step 1: Replace Direct Property Access with Getter Methods
The most common change is replacing direct property access patterns with their getter equivalents.
Step 2: Replace Null Checks with typeof Checks
In Polarion 2304+, variables that were previously null when undefined now require typeof checks.
Step 3: Update Comparison Operators
Use strict equality operators (===) instead of loose equality (==) for consistent behavior with the updated scripting engine.
Step 4: Test Each Script
After updating your scripts, test each one:
- Open the Gantt page in edit mode.
- Check the browser console for errors (right-click the page, select Inspect, open the Console tab).
- Verify that task bars render with the expected colors, markers, and labels.
When upgrading Polarion to 2304 or later, always update your Gantt to the latest version and test all scripts in a staging environment first. Script errors do not crash the Gantt but may cause incorrect rendering or missing visual elements.
Since version 25.4.2, script errors display a warning indicator in the Gantt footer. Click the indicator to see a detailed error message identifying the script and error location.
Common Migration Examples
Color logic script:
Progress calculation script:
Verification
You should now see your Gantt chart rendering correctly without TypeError messages in the browser console. Task bars should display the expected colors, progress, and markers as defined by your scripts.
See Also