Documentation

task.checklistitem.isactionallowed

Verifies whether the action is permitted.

Method Parameters

ParameterDescription
TASKID Task ID. Required parameter.
ITEMID Checklist element ID. Required parameter.
ACTIONID ID of the action to be checked:
  • 1 - ACTION_ADD;
  • 2 - ACTION_MODIFY;
  • 3 - ACTION_REMOVE;
  • 4 - ACTION_TOGGLE.
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

// Let us check if the changing action is permitted for the element with ID=21

BX24.callMethod(
   'task.checklistitem.isactionallowed',
   [13, 21, 2],
   function(result){
      console.info(result.data());
      console.log(result);
   }
);


© «Bitrix24», 2001-2024
Up