Documentation

task.commentitem.isactionallowed

Verifies whether the action is permitted.

Method Parameters

ParameterDescription
TASKID Task ID. Required parameter.
ITEMID Comment ID. Required parameter.
ACTIONID ID of the action to be checked:
  • 1 - ACTION_COMMENT_ADD;
  • 2 - ACTION_COMMENT_MODIFY;
  • 3 - ACTION_COMMENT_REMOVE.
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 the comment with ID=1205 to make sure the delete action is permitted:

BX24.callMethod(
   'task.commentitem.isactionallowed',
   [13, 1205, 3],
   function(result){
      console.info(result.data());
      console.log(result);
   }
);


© «Bitrix24», 2001-2024