Documentation

CTasks classes

CTasks is the class to retrieve list of tasks and several other actions.

Attention! Large portion of CTasks class methods have deprecated (as of module version 12.0.9), that's why it is recommended to use the CTaskItem class and its methods instead.

Class methods

Method Description Available from version
AddAdds a new task.
AddAccomplicesAdds participants for a task.
AddAuditorsAdds observers for a task.
AddFilesAdds files to a task.
AddPreviousAdds previous tasks.
AddTagsAdds tags to a task.
DeleteDeletes a task with ID.
GetByIDReturns task fields by its ID.
GetChildrenCountReturns the number of subtasks for the specified task.
GetListReturns a list of tasks.
GetUpdatesCountReturns the number of updates in tasks. 10.0.5
UpdateModifies the task parameters.
getAvailableOrderFieldsReturns array of fields available for sorting.


© «Bitrix24», 2001-2024