Documentation

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

ParameterDescription
TASKIDTask ID.

Table for correspondence of IDs and accessible actions for tasks.

IdentifierDescription
1ACTION_ACCEPT.
2ACTION_DECLINE.
3ACTION_COMPLETE.
4ACTION_APPROVE.
5ACTION_DISAPPROVE.
6ACTION_START.
7ACTION_DELEGATE.
8ACTION_REMOVE.
9ACTION_EDIT.
10ACTION_DEFER.
11ACTION_RENEW.
12ACTION_CREATE.
13ACTION_CHANGE_DEADLINE.
14ACTION_CHECKLIST_ADD_ITEMS.
15ACTION_ELAPSED_TIME_ADD.
16ACTION_CHANGE_DIRECTOR.
17ACTION_PAUSE.
18ACTION_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
Up