I am currently evaluating dhtmlx Gantt with respect to constraint types. When we create multiple dependencies on a task where it has asap and must start on constraint type child tasks auto scheduling is not working properly and below is my test scenario where I am seeing the issue:
Created a Project #1 - constraint type - asap, start_date:2019-03-01
Created a task #2 - constraint type - asap, start_date:2019-03-01
Created a task #3 - constraint type - asap, start_date:2019-03-01
Created a project type task #4- constraint type - asap, start_date:2019-03-01
Create a task #4.1- constraint type - asap, start_date:2019-03-01
Create a task #4.2- constraint type - Must start on, start_date:2019-03-01
Create a task #5 - constraint type - asap, start_date:2019-03-01
Create a dependency from #3 to #4 then #4.1 start date changes to 2019-03-05 which is fine
Create a dependency from #4 to #5 then #4.1(Source) start date changing to 2019-03-07 which is wrong and expected behaviour is #4.1 start date should not change.
Hello Govardhan,
Thank you for sending the snippet. I reproduced the issue.
Looks like there is an issue with the ASAP constraint as Task #4.1 doesn’t move to the beginning of the project. That bug will be fixed in the future, but I cannot give you any ETA. Now, as a workaround, you can obtain the dates in the onAfterTaskAutoSchedule event handler:
Provided workaround solution is contradicting the ASAP behaviour,
As per docs: As soon as possible - If this constraint is set to an independent task, the task starts at the same time that the project does. If this constraint is set to a dependent task, the task starts as soon as its predecessor tasks end.