Discuss issues related to v5.x

Post by raade »

Hello Support Team,

we're currently looking at the Gantt with Resource Utilization Panel implementation. We're pro licensed users utilizing the current 5.1.10 release.

As our resources are generally teams, we're looking to do two things:

1. Allowing for resources to have an availability > 24hrs to account for their group nature. This is the more pressing issue.

2. Group resources into overarching teams, automatically summing up the utilization of child resources = team members. This is the less pressing, long-term issue.

So far we have:

ad 1.) assigned calendars to resources, set the hoursPerDay to 50 and the default
Availability to 00:00-24:00, but only the latter seems to be taken into account. How can this be overridden so as to account for a team working 50, 120... n man-hours a day?

ad 2.) looked at the node.appendChild method to add child resources, but haven't yielded any results as to the above question

Thank you for your assistance!

Post by arcady »

raade wrote:1. Allowing for resources to have an availability > 24hrs to account for their group nature. This is the more pressing issue.
Amount of time spent by a resource is calculated based on % of the resource allocation. The gantt sums up availability periods of the resource between the task start and finish and multiplies the sum by %.
So at the moment if you want a resource to spent more than 24hrs ..provide % value more than 100 (for example 100% -> 24 hrs/day, 200% -> 48 hrs/day).
If that doesn't work for you you could extend Gnt.model.Resource model, add some attribute like "capacity" or "number of resources" and override its Gnt.model.Resource#getAllocationInfo method.
raade wrote:2. Group resources into overarching teams, automatically summing up the utilization of child resources = team members. This is the less pressing, long-term issue.

ad 1.) assigned calendars to resources, set the hoursPerDay to 50 and the default
Availability to 00:00-24:00, but only the latter seems to be taken into account. How can this be overridden so as to account for a team working 50, 120... n man-hours a day?
hoursPerDay option is responsible for unit conversions only.
And generally speaking calendars just provide which day periods are working and which are not. That's all.

If you want to customize what resource utilization panel renders you can take a look at this demo as a starting point.
raade wrote:ad 2.) looked at the node.appendChild method to add child resources, but haven't yielded any results as to the above question
If you tried to find appenchChild on a resource model then it's not there. Gnt.data.ResourceStore is a flat store. BTW utilization panel uses other models, see Gnt.model.UtilizationResource and Gnt.model.UtilizationEvent classes.

You could also use our professional services for implementing your custom solution. If that's an option feel free to contact sales at bryntum.com and provide your project details to get a quote.

Post by alexshik »

arcady wrote:
Mon Jan 22, 2018 2:08 pm

1. Allowing for resources to have an availability > 24hrs to account for their group nature. This is the more pressing issue.

Amount of time spent by a resource is calculated based on % of the resource allocation. The gantt sums up availability periods of the resource between the task start and finish and multiplies the sum by %.
So at the moment if you want a resource to spent more than 24hrs ..provide % value more than 100 (for example 100% -> 24 hrs/day, 200% -> 48 hrs/day).
If that doesn't work for you you could extend Gnt.model.Resource model, add some attribute like "capacity" or "number of resources" and override its Gnt.model.Resource#getAllocationInfo method.

raade wrote:

2. Group resources into overarching teams, automatically summing up the utilization of child resources = team members. This is the less pressing, long-term issue.

ad 1.) assigned calendars to resources, set the hoursPerDay to 50 and the default
Availability to 00:00-24:00, but only the latter seems to be taken into account. How can this be overridden so as to account for a team working 50, 120... n man-hours a day?

hoursPerDay option is responsible for unit conversions only.
And generally speaking calendars just provide which day periods are working and which are not. That's all.

If you want to customize what resource utilization panel renders you can take a look at this demo as a starting point.

raade wrote:

ad 2.) looked at the node.appendChild method to add child resources, but haven't yielded any results as to the above question

If you tried to find appenchChild on a resource model then it's not there. Gnt.data.ResourceStore is a flat store. BTW utilization panel uses other models, see Gnt.model.UtilizationResource and Gnt.model.UtilizationEvent classes.

You could also use our professional services for implementing your custom solution. If that's an option feel free to contact sales at bryntum.com and provide your project details to get a quote.

Hello Support Team,

"Amount of time spent by a resource is calculated based on % of the resource allocation. The gantt sums up availability periods of the resource between the task start and finish and multiplies the sum by %.
So at the moment if you want a resource to spent more than 24hrs ..provide % value more than 100 (for example 100% -> 24 hrs/day, 200% -> 48 hrs/day)."

Can you tell me please, how to increase % of the resource allocation?


Post by Maxim Gorkovsky »

Hello.
There is a field on assignment model called units which represents resource allocation for the task: https://bryntum.com/docs/gantt/#Gantt/model/AssignmentModel#field-units
You can provide it in the data or change in UI using column: https://bryntum.com/docs/gantt/#Gantt/column/ResourceAssignmentColumn

Снимок экрана 2021-10-07 124833.png
Снимок экрана 2021-10-07 124833.png (112.68 KiB) Viewed 562 times

Post Reply