Constraint change after resizing

There’s it two way of resizing a task - moving left side and right side. Left side changes start_date, right side changes duration and end_date.

If a task being resized has “ASAP” constraint, it is changed “No Earlier Than” constraint. It makes sense if I change start date, but I’d like to change this behavior for resizing the right side, basically leaving ASAP constraint if I resize duration. Is there a way to do it?

I tried to subscribe on “onTaskDrag” and rewriting the constrain from the original task, but something still changes it to “No Earlier Than” at some point.

Thank you.

Hello Alex,
We are aware of the issue that Gantt changes the constraint date and type if you change the duration and end_date parameters, and Gantt is not scheduling from the end. That bug will be fixed in the future, but unfortunately, I cannot give you any ETA.
As a workaround, you can detect that you change the end_date or duration parameter and backup the constraint date. After the task is updated, you modify its constraint parameters.
Here is the snippet:

Hello Alex,

The dev team fixed the bug with the auto-scheduling extension. Now if you resize a task, change its end_date or duration, it doesn’t change the constraint to SNET:

You can check how it works in the following sample: