List of effected tasks on taskupdate

Hi,

is there a way, to get a list of all effected or rescheduled tasks when I update a task? Especially for tasks of type “project”?

When I change a task, each effected (rescheduled) task of type “task” fires the “AfterUpdateTask” event, which is fine, but effected tasks of type “project” don’t.

Hello, probably the best way will be to use gantt.eachTask () method, something like this

gantt.eachTask(function(child) {
    if(child.type == gantt.config.types.project) {
        // do smth ...
    }
}, gantt.config.root_id)

Please see docs.dhtmlx.com/gantt/api__gantt_eachtask.html
Inside you’ll get cyclically each task instance so you can check for appropriate properties and then implement your own logic