Trigger module, requires 'route' parameter

I’m trying to use a Forge install event and use a remote backend for it.
So, my declaration looks like this:

modules:
  trigger:
    - key: roman-events-hello-world
      endpoint: install-event-forge
      events:
        - avi:forge:installed:app
  endpoint:
    - key: install-event-forge
      remote: install-event-forge
      auth:
        appUserToken:
          enabled: false
        appSystemToken:
          enabled: false

When I do this, it get this error:

14:9    error    Trigger module: 'roman-events-hello-world' using remote endpoint:
 'install-event-forge' requires 'route' parameter.  valid-module-required

However, I cannot find any reference for a route parameter in the documentation?

Ah…the route must be declared on the ‘endpoint’

https://developer.atlassian.com/platform/forge/manifest-reference/endpoint/

So, it should be something like this:

  endpoint:
    - key: install-event-forge
      remote: connect
      route:
        path: /install-event-forge
      auth:
        appUserToken:
          enabled: false
        appSystemToken:
          enabled: false

To bad the search in the Atlassian docs for ‘route’ doesn’t bring this topic up at all.

1 Like