General Introduction
Tasks in Core D7
add
getData
getDescription
addByTemplate
addChildTaskByTemplate
addProjectDependence
checkCanRead
duplicate
duplicateChildTasks
getFiles
update
updateProjectDependence
getTags
getDependsOn
getAllowedActions
isActionAllowed
delete
delegate
startExecution
defer
renew
complete
approve
disapprove
addToFavorite
deleteFromFavorite
toggleFavorite
Table structure
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
Up