• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/scrum/service/pushservice.php
  • Класс: BitrixTasksScrumServicePushService
  • Вызов: PushService::sendAddItemEvent
public function sendAddItemEvent(ItemForm $addedItem): void
{
	$entityService = new EntityService();

	$entity = $entityService->getEntityById($addedItem->getEntityId());
	if ($entityService->getErrors() || $entity->isEmpty())
	{
		return;
	}

	$tag = 'itemActions_' . $entity->getGroupId();

	CPullWatch::addToStack(
		$tag,
		[
			'module_id' => 'tasks',
			'command' => 'itemAdded',
			'params' => [
				'id' => $addedItem->getId(),
				'groupId' => $entity->getGroupId(),
			],
		]
	);
}