• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/scrum/service/taskservice.php
  • Класс: BitrixTasksScrumServiceTaskService
  • Вызов: TaskService::getLinkedTasks
public function getLinkedTasks(int $taskId): array
{
	try
	{
		$taskItem = $this->getTaskItemObject($taskId);

		$taskData = $taskItem->getData(false, [
			'select' => ['DEPENDS_ON'],
		]);

		return $taskData['DEPENDS_ON'];
	}
	catch (Exception $exception)
	{
		$this->errorCollection->setError(
			new Error(
				$exception->getMessage(),
				self::ERROR_COULD_NOT_CHECK_IS_LINKED_TASK
			)
		);

		return [];
	}
}