• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/scrum/controllers/dod.php
  • Класс: BitrixTasksScrumControllersDoD
  • Вызов: DoD::getSettingsAction
public function getSettingsAction(int $groupId, int $taskId = 0, string $saveRequest = 'Y'): array
{
	$typeService = new TypeService();
	$backlogService = new BacklogService();

	$backlog = $backlogService->getBacklogByGroupId($groupId);

	$itemType = $this->getItemType($taskId);

	$activeTypeId = 0;
	$types = [];

	foreach ($typeService->getTypes($backlog->getId()) as $type)
	{
		$types[] = $type->toArray();
	}

	if (!$itemType->isEmpty())
	{
		$activeTypeId = $itemType->getId();
	}

	return [
		'types' => $types,
		'activeTypeId' => $activeTypeId,
	];
}