• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/scrum/controllers/dod.php
  • Класс: BitrixTasksScrumControllersDoD
  • Вызов: DoD::isItemListEmpty
private function isItemListEmpty(int $itemId, int $userId): bool
{
	try
	{
		return empty(ItemChecklistFacade::getItemsForEntity($itemId, $userId));
	}
	catch (Exception $exception)
	{
		$this->errorCollection->setError(
			new Error(
				$exception->getMessage(),
				self::ERROR_COULD_NOT_IS_EMPTY
			)
		);

		return false;
	}
}