• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/scrum/service/epicservice.php
  • Класс: BitrixTasksScrumServiceEpicService
  • Вызов: EpicService::getEpic
public function getEpic(int $epicId): EpicForm
{
	$epic = new EpicForm();

	try
	{
		$queryObject = EpicTable::getList([
			'filter' => ['ID' => $epicId],
			'order' => ['ID']
		]);
		if ($epicData = $queryObject->fetch())
		{
			$epic->fillFromDatabase($epicData);
		}
	}
	catch (Exception $exception)
	{
		$this->errorCollection->setError(
			new Error(
				$exception->getMessage(),
				self::ERROR_COULD_NOT_GET_EPIC
			)
		);
	}

	return $epic;
}