updateProjectDependence
CTaskItem::updateProjectDependence( $parentId, $linkType = DependenceTable::LINK_TYPE_FINISH_START );
Updates a dependency type between two tasks within Gantt.
Parameters
Parameter | Description |
---|---|
parentId | INT - task with newly added dependency |
linkType | INT type of linking. Default: 2. Changes from 0 to 3 depending on which type of link is required. |
Examples
$task = CTaskItem::getInstance(1, 1); $task->updateProjectDependence(2, \Bitrix\Tasks\Task\DependenceTable::LINK_TYPE_FINISH_FINISH);
© «Bitrix24», 2001-2024