Mark Non-Working Days in Polarion
Before configuring the Gantt, define your holidays and non-working days in the Polarion working calendar:
- Navigate to Administration > Working Calendar in your Polarion project
- Select the dates you want to mark as non-working (holidays, company closures)
- Save the calendar changes
Enable the Working Calendar in the Gantt Widget
Open the Gantt widget parameters and locate the Working Calendars section:
- Set Use Working Calendar to
Yes
The Working Calendars settings are interdependent. Setting Use Working Calendar to
Yes reveals the Load User Calendars option. Enabling that reveals Load Team Assignments. Each toggle progressively adds more calendar detail.Load Holiday Data via Gantt Config Script
To load the non-working days into the Gantt view, add the following to the widget parameters under Advanced > Gantt Config Script:Adjust the years to cover the time range you need. Each
.loadNotWorkingDays(year) call loads holiday data for that specific year.Configure Year Range in Widget Parameters
For a more permanent configuration, set the year range in the Working Calendars widget parameters:
Higher values ensure calendar data is available for long-range planning but increase startup time.
| Parameter | Description | Recommended Value |
|---|---|---|
| Next Years to Load | Number of future years of calendar data to load | 1-2 |
| Previous Years to Load | Number of past years of calendar data to load | 1 |
How Non-Working Days Appear
Once configured, non-working days are reflected in the Gantt in several ways:- Timeline cell highlighting — off-day cells receive a visual highlight distinguishing them from working days
- Resource view — grey markers appear in the resource view for days where a user is unavailable
- Duration calculations — when auto-scheduling is enabled, non-working days are skipped when computing task durations
Verification
You should now see:- Non-working days highlighted in the Gantt chart timeline
- Grey markers in the resource view on holiday dates
- Task duration calculations skipping non-working days when auto-scheduling is active