• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/scrum/service/definitionofdoneservice.php
  • Класс: BitrixTasksScrumServiceDefinitionOfDoneService
  • Вызов: DefinitionOfDoneService::getComponent
public function getComponent(int $entityId, string $entityType, array $items): Component
{
	$randomGenerator = new RandomSequence(rand());

	return new Component(
		'bitrix:tasks.widget.checklist.new',
		'',
		[
			'ENTITY_ID' => $entityId,
			'ENTITY_TYPE' => $entityType,
			'DATA' => $items,
			'CONVERTED' => true,
			'CAN_ADD_ACCOMPLICE' => false,
			'SIGNATURE_SEED' => $randomGenerator->randString(6),
			'SHOW_COMPLETE_ALL_BUTTON' => $entityType === 'SCRUM_ITEM',
			'COLLAPSE_ON_COMPLETE_ALL' => false,
		]
	);
}