Links not affecting start dates


#1

What am I doing wrong? Using default config for Gantt version 6.1. When I add links they store in the DB and draw on the Gantt correctly but it does not affect the start dates of the connected task.

Here is my Typescript to init my Gantt:

gantt.config.date_format = "%Y-%m-%d %H:%i";
gantt.init("gantt_schedule");
ganttModules.menu.setup();
gantt.load("/api/gantt/getGanttbyProject?proj=" + this.data.projectID, "json");

        var dp = new gantt.dataProcessor("/api/gantt");
        dp.init(gantt);
        dp.setTransactionMode("REST");

Any ideas as to what I’m doing wrong?

-Lester


#2

Hello Lester,
By default, the links shouldn’t affect tasks. If you want to auto-schedule tasks, you need to enable auto-scheduling:
https://docs.dhtmlx.com/gantt/desktop__auto_scheduling.html

If you want to auto-schedule tasks, I would recommend continuing our discussion there:

If you add custom parameters to the link objects, Gantt doesn’t watch them. You will need to implement a custom solution for that use case.


#3

Auto-scheduling was finally implemented. Thanks for your help.