Premium support for our pure JavaScript UI components


Post by clovisapp »

Hi Bryntum team,

Is there a way to make the task not "blocked" when it has subtasks ?

  • changing subtasks dates change the main task dates, but changing the task dates can't be done (because the subtasks are "blocking" it)

  • if the tasks has dependencies (gantt links), the task isn't affected by dependencies.
    etc...

    Thanks a lot for your help

Attachments
Screen Recording 2024-01-12 at 15.29.37.mov
(22.12 MiB) Downloaded 58 times
Screenshot 2024-01-12 at 15.30.07.png
Screenshot 2024-01-12 at 15.30.07.png (151.02 KiB) Viewed 1559 times
Last edited by clovisapp on Tue Jan 23, 2024 5:23 pm, edited 1 time in total.

Image


Post by marcio »

Hey,

Have you tried to set the task to manuallyScheduled: true? https://bryntum.com/products/gantt/docs/api/Gantt/model/TaskModel#field-manuallyScheduled

You can get more info on how the scheduling works here https://bryntum.com/products/gantt/docs/guide/engine/gantt_events_scheduling

Best regards,
Márcio


Post by clovisapp »

Thanks a lot Marcio,

if

manuallyScheduled: true

for a Gantt task, and subtasks, how can we make the parent task change of duration function of it's subtasks dates, do you have a good practice about that ?

Image


Post by tasnim »

Hi,

Do you mean you want to calculate the parent task duration when the subtasks duration change?


Post by clovisapp »

@tasnim, exactly !

Image


Post by tasnim »

Hi,

It can be either user-provided or calculated, so doing both would not be possible.


Post by arcady »

Regarding why your parent task doesn't move - it's hard to tell since you haven't provided a test case.

My guess is it probably contains a manually scheduled child task. Then the parent cannot move since its child position is supposed to be set by user manually.


Post by clovisapp »

Thanks @arcady

The behavior of "groups" just work the right way (cf video in attachment).

  • An event of a group can't be moved more in the past than the group start date
  • Moving a task in the future makes the group end date change
  • Moving the event with the biggest "end date" makes the group move back to the lattest dates of sub tasks

Is that possible to get the same behavior with tasks and sub tasks ?

Attachments
Screen Recording 2024-01-24 at 12.42.42.mov
(8.36 MiB) Downloaded 42 times

Image


Post by clovisapp »

Also setting all tasks as "manuallyScheduled: true," created this issue: viewtopic.php?p=139168#p139168

Image


Post by arcady »

An event of a group can't be moved more in the past than the group start date

  1. setting Start No Earlier Than constraint on a parent task will prevent its children to move earlier than the constraint date (generally speaking all parent constraints are inherited by its children)

    Moving a task in the future makes the group end date change
    Moving the event with the biggest "end date" makes the group move back to the lattest dates of sub tasks

    this is how parent task dates are calculated out of the box (unless a parent is manually scheduled then it's dates are supposed to be provided by user manually)

Post Reply