Documentation

OnTaskCommentUpdate

This event is triggered when performing operations with comments to a task, specifically when updating or deleting.

Response fields:

Field Description
FIELDS_BEFORE task fields prior to the event. If accessible task fields are unavailable, this field will contain the undefined value.
FIELDS_AFTER task fields after to the event. If accessible task fields are unavailable, this field will contain undefined value.
IS_ACCESSIBLE_BEFORE specifies if a task was accessible prior to the event (to be read). Possible values:
  • Y (Yes) - yes;
  • N (No) - no;
  • undefined - not defined, or verification was not performed.
IS_ACCESSIBLE_AFTER if a task became accessible after the event, or not (for read). Possible values:
  • Y (Yes) - yes;
  • N (No) - no;
  • undefined - not defined or verification was not performed.

Example for field values:

$arEventFields = array(
    'FIELDS_BEFORE' => array('ID' => $taskId), // modified task ID
    'FIELDS_AFTER' => array('ID' => $taskId), // modified task ID
    'IS_ACCESSIBLE_BEFORE' => 'undefined', // verification for task accessibility to be read was not performed 
    'IS_ACCESSIBLE_AFTER' => 'undefined' // verification for task accessibility to be read was not performed 
);


© «Bitrix24», 2001-2021