get dependent task details

Hi DHTML Team,
when I drag a task, I need to get all the dependent task (linked tasks) details also. How can I get this?
Kindly help me :slight_smile:

Hi,
each task has ‘$source’ and ‘$target’ properties (incoming and outcoming links respectively). Link in it’s turn, have ‘source’ and ‘target’ properties for the ids of linked tasks[code]var task = gantt.getTask(taskId);

for(var i = 0; i < task.$source.length; i++){
var link = gantt.getLink(task.$source[i]);
//link.source
//link.target
//link.type
}[/code]
docs.dhtmlx.com/gantt/desktop__l … tions.html
docs.dhtmlx.com/gantt/api__gantt … onfig.html
docs.dhtmlx.com/gantt/api__gantt_gettask.html