Documentation

OnTaskUpdate

The event is called after a task was updated.

Response Fields

Field Description
FIELDS_BEFORE Specifies an array of the task fields before the event has occurred. This field may be set to undefined if no fields were available before update.
FIELDS_AFTER Specifies an array of the task fields available after the event has occurred (the task data has been updated). This field may be set to undefined if no fields are available after update.
IS_ACCESSIBLE_BEFORE Specifies if the task was available for reading before the event has occurred. It can be one of the following values:
  • Y - the task was available for reading;
  • N - the task was not available for reading;
  • undefined - access permission undefined or was not checked.
IS_ACCESSIBLE_AFTER Specifies if the task is available for reading after the event has occurred. It can be one of the following values:
  • Y - the task is available for reading;
  • N - the task is not available for reading;
  • undefined - access permission undefined or was not checked.

Example

$arEventFields = array(
    'FIELDS_BEFORE' => array('ID' => $taskId), // the task ID before update
    'FIELDS_AFTER' => array('ID' => $taskId), // the task ID after update
    'IS_ACCESSIBLE_BEFORE' => 'undefined', // task access permission was not checked
    'IS_ACCESSIBLE_AFTER' => 'undefined' // task access permission was not checked
);

© «Bitrix24», 2001-2024