Customised Working Hours per Resource

Modified on Thu, 11 May 2023 at 02:05 PM

Same Working Hours for each resource

If you want just to change the default working hours per every resource, you can do it:


A) In your Widget properties > Advanced > Gantt Config Script

gantt.config.workingHoursPerDay=7


B) Default, per Polarion server or Project in Polarion Administration > Configuration Properties 

nextedy.gantt.workingHoursPerDay=7



Different Working Hours for different resources

You can customise Gantt with your own function to return the working hours per user.

In your Widget properties > Advanced > Gantt Config Script you can define your own function.


Advanced:

Please, keep in mind that you can use velocity, including $trackerService to prepare the script function with dynamic results based on some work item data. In other words, the definition of the function is produced by Velocity script (Gantt config script) on the server, and you can use Velocity to e.g. find a work item, that holds the resource load.


gantt.config.workingHoursPerDayFunction = (resource) =>{
  if(resource==="rProject"){
        console.log("rProject")
      return 4;
    }    
    return 8;
};



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article