• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/integration/bizproc/automation/target/task.php
  • Класс: BitrixTasksIntegrationBizprocAutomationTargetTask
  • Вызов: Task::getEntityStatus
public function getEntityStatus()
{
	$entity = $this->getEntity();
	$stageId = (int) $entity['STAGE_ID'];
	if ($stageId === 0 && $entity['GROUP_ID'] > 0)
	{
		TasksKanbanStagesTable::setWorkMode(TasksKanbanStagesTable::WORK_MODE_GROUP);
		$stageId = TasksKanbanStagesTable::getDefaultStageId($entity['GROUP_ID']);
	}

	return $stageId;
}