Hello, I need some information about the autoSchedule method.
I am trying to switch from falsy work time to true work time and to autoSchedule the project in order to set the good datas.
I didn’t create a stackblitz but I will show you the result of commands that i ran one after the other.
Hello Ouassim,
Thank you for reporting about that.
The autoscheduling feature is used to autoschedule tasks, not to calculate the work time.
I reproduced the behavior you describe: http://snippet.dhtmlx.com/972bc4640
First, you can click on the left button, then click on the right button.
Task #2 wasn’t resized, Task #4 was resized. However, Task #3 is pushed correctly to its place as if Task #2 was resized.
Looks like, the autoscheduling doesn’t recalculate the task dates when it is not necessary to move the task. But there is no such issue if you manually move tasks: if a task stays in its place, nothing should have happened, if the task should be pushed, we need to recalculate the dates anyway. So, if you make the API call, you need to recalculate task dates manually as described in the article.
However, I added that as a bug so that Gantt will work the same way with and without the work time feature. I cannot give you any ETA, but I will notify you when the issue is fixed.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan