The event
module defines a custom backend event type.
To publish the event, call this in your function:
1 2import { appEvents } from '@forge/events'; const result = await appEvents.publish({'key': 'module-key'});
Apps can subscribe to the event with the trigger module, referring to it by the following AVI (Atlassian eVent Identifier):
1 2avi:cloud:ecosystem::event/{app-id}/{module-key}
where:
app-id
is the UUID of your appmodule-key
is the key of the event moduleFor more details, see App events.
Property | Type | Required | Description |
---|---|---|---|
key |
| Yes |
The key of the event. Part of the event AVI, and used in the publishing API to identify the event. Regex: |
name | string | Yes | A human-readable name of the event. |
allowedRecipients | Array<string> | Yes |
A list of apps allowed to receive the event.
|
1 2modules: event: - key: event-key name: Event name allowedRecipients: ['*']
Rate this page: