task.item.getallowedactions
Attention! This method is deprecated and is no longer supported. It is recommended to use the methods tasks.task.*.
Returns an array of allowed task actions IDs (see PHP class constants CTaskItem).
Function parameters
Parameter | Description |
---|---|
TASKID | Task ID. |
Table for correspondence of IDs and accessible actions for tasks.
Identifier | Description |
---|---|
1 | ACTION_ACCEPT. |
2 | ACTION_DECLINE. |
3 | ACTION_COMPLETE. |
4 | ACTION_APPROVE. |
5 | ACTION_DISAPPROVE. |
6 | ACTION_START. |
7 | ACTION_DELEGATE. |
8 | ACTION_REMOVE. |
9 | ACTION_EDIT. |
10 | ACTION_DEFER. |
11 | ACTION_RENEW. |
12 | ACTION_CREATE. |
13 | ACTION_CHANGE_DEADLINE. |
14 | ACTION_CHECKLIST_ADD_ITEMS. |
15 | ACTION_ELAPSED_TIME_ADD. |
16 | ACTION_CHANGE_DIRECTOR. |
17 | ACTION_PAUSE. |
18 | ACTION_START_TIME_TRACKING. |
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.item.getallowedactions', [13], function(result) { console.info(result.data()); console.log(result); } );
© «Bitrix24», 2001-2024