Approach 1: Set a Uniform Value for All Resources
To change the default working hours for every resource in the project, use one of these methods:Option A: Gantt Config Script (Per Widget)
Add the following in Widget Properties > Advanced > Gantt Config Script:Option B: Administration Property (Per Project or Server)
Add the following in Administration > Configuration Properties:| Method | Scope | Set In |
|---|---|---|
gantt.config.workingHoursPerDay | Single widget | Widget Properties > Advanced > Gantt Config Script |
nextedy.gantt.workingHoursPerDay | Project or server | Administration > Configuration Properties |
Approach 2: Different Hours per Resource (Script Function)
For scenarios where different users have different working hours, define a custom function in the Gantt Config Script:Example: Velocity-Powered Resource Hours
The Velocity-based approach depends on your project’s specific work item types and custom fields. Test the generated JavaScript output in the browser console to confirm correct values.
How It Affects the Resource View
The working hours value determines the capacity denominator in resource view calculations:- Time mode: Shows allocated hours vs. available hours per day
- Remaining mode: Shows remaining capacity (available minus allocated)
- Allocation mode: Shows percentage (allocated / available * 100)
Verify
You should now see that resource view capacity markers reflect the customized hours per resource. Resources with reduced hours show higher utilization percentages for the same amount of assigned work.See Also
- Set Up Work Item Calendars
- Import Calendars from CSV
- Configure Capacity Modifier Fields
- Set Up the Resource View
- Write Gantt Config Scripts
Sources
Sources
KB Articles
- Customised Working Hours per Resource
- Work Item Calendar
- Use WI Calendar for other project for Resource Load management
prod-gantt-src/com.nextedy.polarion.gantt.client/src/js/markers.jsprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/working-calendars/capacity-modifiers.cy.tsprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/Aresource-view/AganttInitialEstimation.cy.tsprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/working-calendars/csv-calendar.cy.tsprod-gantt-src/com.nextedy.polarion.gantt.client/cypress/e2e/Aresource-view/gantt-Working-Hours.cy.ts