• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/scrum/service/itemservice.php
  • Класс: BitrixTasksScrumServiceItemService
  • Вызов: ItemService::updateEntityIdToItems
public function updateEntityIdToItems(int $entityId, array $itemIds): void
{
	try
	{
		if ($itemIds)
		{
			ItemTable::updateMulti($itemIds, ['ENTITY_ID' => $entityId]);
		}
	}
	catch (Exception $exception)
	{
		$this->errorCollection->setError(
			new Error($exception->getMessage(), self::ERROR_COULD_NOT_UPDATE_ITEMS_ENTITY)
		);
	}
}