• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/scrum/service/chatservice.php
  • Класс: BitrixTasksScrumServiceChatService
  • Вызов: ChatService::getChatIds
public function getChatIds(int $groupId): array
{
	$chatIds = [];

	try
	{
		$queryObject = ChatTable::getList([
			'select' => ['CHAT_ID'],
			'filter' => [
				'GROUP_ID' => $groupId,
			]
		]);
		while ($data = $queryObject->fetch())
		{
			$chatIds[] = $data['CHAT_ID'];
		}
	}
	catch (Exception $exception)
	{
		$this->errorCollection->setError(
			new Error(
				$exception->getMessage(),
				self::ERROR_COULD_NOT_GET_CHATS
			)
		);
	}

	return $chatIds;
}