Documentation

task.elapseditem.isactionallowed

task.elapseditem.isactionallowed(taskId, itemId, actionId)

Verify whether the action is allowed.

Parameters

ParameterDescription
taskIdTask ID.
itemIdTime spent record ID.
actionIdAction ID:
  • 1 - ACTION_ELAPSED_TIME_ADD;
  • 2 - ACTION_ELAPSED_TIME_MODIFY;
  • 3 - ACTION_ELAPSED_TIME_REMOVE.

Attention! Compliance to parameter sequence in the request is mandatory. If sequence is not observed, the request will be completed with errors.

Example

BX24.callMethod(
   'task.elapseditem.isActionAllowed',
   [1, 204, 2],
   function(reply){
      var isAllowed = reply.data();      // or this way (similarly): var isAllowed = reply.answer.result;
   }
);


© «Bitrix24», 2001-2024
Up