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.

Example

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


User Comments

User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.

The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.
© «Bitrix Inc.», 2001-2017, «Bitrix Inc.», 2017