• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/activity/provider/tasks/comment.php
  • Класс: Bitrix\Crm\Activity\Provider\Tasks\Comment
  • Вызов: Comment::prepareFields
public function prepareFields(int $taskId, int $responsibleId, ItemIdentifier $identifier, array $timelineParams): array
{
	$task = TaskObject::getObject($taskId);
	return [
		'ASSOCIATED_ENTITY_ID' => $taskId,
		'BINDINGS' => [
			[
				'OWNER_ID' => $identifier->getEntityId(),
				'OWNER_TYPE_ID' => $identifier->getEntityTypeId(),
			],
		],
		'STORAGE_ELEMENT_IDS' => $timelineParams['TASK_FILE_IDS'],
		'RESPONSIBLE_ID' => $responsibleId,
		'SUBJECT' => $task->getTitle(),
		'SETTINGS' => $timelineParams,
		'IS_INCOMING_CHANNEL' => 'Y',
	];
}