Documentation

OnTaskCommentAdd

This event is triggered when adding comments to a task.

Response fields:

Field Description
FIELDS_BEFORE task fields prior to the event. If accessible fields are unavailable, this field will contain undefined value.
FIELDS_AFTER take fields after the event. If accessible 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 comment ID
    'FIELDS_AFTER' => array('ID' => $taskId), // modified comment 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-2024
Up