Skip to main content

getConnectedGroup

info

This functionality is available in the PRO edition only.

Description

Returns all tasks and links that a task is connected with

getConnectedGroup: (id?: string | number) => any

Parameters

  • name - (optional) string | number - the id of a task

Returns

  • connections - (object) - an object with tasks and links a task is connected with

Example

gantt.getConnectedGroup(18);
// => {links:["16", "17", "18"], tasks:[18, 17, 19, 20]}

Details

Without parameters, the method returns all groups of tasks and links that make connections.

note

The method requires the auto_scheduling plugin to be included on the page.