Documentation

complete

void 
public function complete();

This method switches task into the "completed" status (CTasks::STATE_COMPLETED) or "supposedly completed ("awaiting for supervisor's control")" (CTasks::STATE_SUPPOSEDLY_COMPLETED).

Example

$ID = 1; // your task ID

$test = new \Bitrix\Tasks\Item\Task($ID);
$test->complete();


© «Bitrix24», 2001-2024