The trigger
module invokes a function or calls a remote backend when a product event, app lifecycle event, or data security policy event is fired. For example, as the result of
an issue being created in Jira.
Property | Type | Required | Description |
---|---|---|---|
key |
| Yes |
A key for the module, which other modules can refer to. Must be unique within the manifest. Regex: |
function | string | Required if using UI Kit 1 or triggers. | A reference to the function module that defines the module. |
endpoint | string | A reference to the Required if no | |
events | Array<string> | Yes | A list of product events that trigger the function or endpoint. |
filter | Filter | No | A set of options to prevent invoking a function or endpoint. |
Property | Type | Required | Description |
---|---|---|---|
ignoreSelf | boolean | The filter property must have either ignoreSelf or expression or both of them defined. |
Ignore self-generated events. For example, an app updates an issue and ignores the Note that currently |
expression | string |
An expression used to filter out unwanted events. For example, instead of listening to all | |
onError | enum | No |
Specify what should happen when an error occurs while evaluating the expression. You can either invoke a function or call a remote backend and publish app logs. Can be used only with the The possible values are:
|
1 2modules: trigger: - key: issue-updated-trigger-with-ignore-self-and-expression function: main events: - avi:jira:updated:issue filter: ignoreSelf: true expression: event.issue.fields?.issueType.name == 'Bug' onError: RECEIVE_AND_LOG function: - key: main handler: index.run
Rate this page: