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

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

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

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