task.checklistitem.update
Updates data of a checklist element.
Before updating data, it is advisable to make sure the action is permitted (task.checklistitem.isactionallowed).
Method Parameters
Parameter | Description |
---|---|
TASKID | Task ID. Required parameter. |
ITEMID | Checklist element ID. Required parameter. |
FIELDS | Array of fields of a checklist elements (TITLE, SORT_INDEX, IS_COMPLETE). Required parameter. |
Attention! Compliance to parameter sequence in the request is mandatory. If sequence is not observed, the request will be completed with errors.
Example
// Updating the status to 'uncompleted' and the text to 'Item not completed' for the element with ID=25. BX24.callMethod( 'task.checklistitem.update', [13, 25, {TITLE: 'Item uncompleted', 'IS_COMPLETE': 'N'}], function(result){ console.info(result.data()); console.log(result); } );
© «Bitrix24», 2001-2024