• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/scrum/controllers/epic.php
  • Класс: BitrixTasksScrumControllersEpic
  • Вызов: Epic::getEpicInfoAction
public function getEpicInfoAction(int $groupId)
{
	$userId = UtilUser::getId();

	$existsEpic = false;

	$epicService = new EpicService($userId);

	$nav = new PageNavigation('epicsInfo');
	$nav->setPageSize(1);

	$queryResult = $epicService->getList(
		['ID'],
		['=GROUP_ID' => $groupId],
		['ID' => 'DESC'],
		$nav
	);
	if ($queryResult)
	{
		if ($queryResult->fetch())
		{
			$existsEpic = true;
		}
	}

	if ($epicService->getErrors())
	{
		$this->errorCollection->add($epicService->getErrors());

		return null;
	}

	return [
		'existsEpic' => $existsEpic
	];
}