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

	reset($updatedItemsInfo);
	$itemId = key($updatedItemsInfo);

	$item = $itemService->getItemById($itemId);
	if ($item->isEmpty())
	{
		return;
	}

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

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

	CPullWatch::addToStack(
		$tag,
		[
			'module_id' => 'tasks',
			'command' => 'itemSortUpdated',
			'params' => $updatedItemsInfo,
		]
	);
}