You can configure scheduled triggers to invoke your remote backend repeatedly on a scheduled interval. Specify remote endpoints in your app’s manifest and Forge will automatically make requests to your remote with a Forge Invocation Token and an optional app access token.
To configure scheduled triggers that invoke your remote backend, in your manifest.yml
:
endpoint
your app will send remote requests to. This is done using the endpoint
property of the scheduledTrigger
module. Using endpoint
rather than function
tells Forge that your app will invoke a remote endpoint.endpoint
item with a key
matching the endpoint
name you specified in the previous step.
remote
property to the key that uniquely identifies the remote system the endpoint will communicate with.route.path
to the REST API operation path to be appended to the remote’s baseUrl, to invoke the desired REST API.auth
property.remotes
item with a key matching the remote name you specified in the endpoint, setting the baseUrl to the site URL prefix to prepend to the routes specified in your app's route.path.Below is an example manifest.yml
containing a module that routes an event to /frc-event
when a Confluence comment is added:
1 2modules: scheduledTrigger: - key: remote-scheduled-trigger-boot endpoint: remote-trigger-boot interval: hour endpoint: - key: remote-trigger-node remote: remote-app-node route: path: /forge-trigger auth: appSystemToken: enabled: true permissions: scopes: - read:app-system-token remotes: - key: remote-app-node baseUrl: https://forge-remote-refapp-nodejs.services.atlassian.com
You will need to verify the requests received by your remote came from Atlassian and are intended for your app. For more information on how to do this, see Verifying remote requests.
Now that you’ve verified the requests and have received your access tokens, you can:
Rate this page: