• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/scrum/controllers/dod.php
  • Класс: BitrixTasksScrumControllersDoD
  • Вызов: DoD::isNecessaryForScrum
private function isNecessaryForScrum(int $groupId, int $userId): bool
{
	$typeService = new TypeService();
	$backlogService = new BacklogService();

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

	$participantsCodes = [];
	foreach ($typeService->getTypes($backlog->getId()) as $type)
	{
		$participantsCodes = array_merge($participantsCodes, $type->getParticipantsCodes());
	}

	$participantsIds = $this->getParticipantsIds($groupId, $participantsCodes);

	return in_array($userId, $participantsIds);
}