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)