• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/scrum/controllers/sprint.php
  • Класс: BitrixTasksScrumControllersSprint
  • Вызов: Sprint::getBurnDownInfoAction
public function getBurnDownInfoAction(int $groupId): array
{
	$sprintService = new SprintService();

	$sprint = $sprintService->getActiveSprintByGroupId($groupId);

	if ($sprint->isEmpty())
	{
		$sprint = $sprintService->getLastCompletedSprint($groupId);
	}

	return [
		'sprint' => $sprint->isEmpty() ? null : $sprint->toArray()
	];
}