Our state of the art Gantt chart


Post by aleix »

Hello, good morning.

I’m currently working with Resource Utilization and the hour consumption logic behaves correctly based on assigned resources. However, we’ve encountered a scheduling scenario where hour allocation should depend on conditions shared between different resource types.

Scenario

We have two resource types:

  1. Center → Available 24h/day

  2. Staff (two individuals):
    Staff A → morning shift
    Staff B → afternoon shift

Night hours have no Staff, but the Center remains available 24h.

Requirement
We need to determine whether the Center should consume hours when no Staff is present.

Time period Staff available? Should the Center consume hours?
Morning Yes Yes
Afternoon Yes Yes
Night No Only if Center is allowed to operate alone

Ideally, we would need some kind of rule such as:

center.canOperateAlone = true | false

So that the Center only generates hours when Staff is present — unless a task explicitly allows the Center to work by itself.

Important note

One solution we have explored is generating a "synthetic" calendar in the backend.
We process the resource availability, build a custom calendar matching the scenario (Center hours allowed only if Staff overlaps), and then apply that calendar to the task.

However, in our setup we are not working with task calendars, but resource calendars — so this approach feels more like a workaround than a native solution.

Question

Is there a built-in way or recommended extension point to:

  - Define conditional hour allocation based on the presence/overlap of other resources, and/or
  - Apply rules that modify resource hour calculation without generating artificial calendars?

Any guidance or best practice would be very helpful.
Thanks!


Post by alex.l »

Hi,

Sounds like you need to set task calendar together with resource calendar. Since working time in that case will be only intersection time of 2 assigned calendars, Task's calendar will define if night shift is working time or not for entire task. Please read full explanation here https://bryntum.com/products/gantt/docs/guide/Gantt/basics/calendars#resource-calendars

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy


Post by alex.l »

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy


Post Reply