Activity Callbacks¶
Activity callbacks are used to inject system-wide activities, enabling the execution of additional operations when specific types of activities occur.
For instance, if a custom notification system is used for mobile devices, an activity callback can be injected for 'work item assign' activities to send push notifications.
Is Enabled?¶
This setting determines whether the specific activity callback is enabled or disabled.
Name¶
This is the identifier for the integration, facilitating easy identification.
Callback code¶
This field contains the integration script for the activity callback. The script is invoked with a set of predefined variables:
Variable Name | Description |
---|---|
$Targets | An array of target identities. |
$Activity | A JSON object representing the activity. |
The script content can vary depending on the service definition. The following example demonstrates a typical use case:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|