Forge - Confluence Trigger

I’m having trouble with setting up triggers for Confluence. Wondering if anyone has similar issues.

I have a manifest file setup as follows:

modules:
  trigger:
    - key: confluence-test-hello-world
      function: main
      events:
        - avi:confluence:permissions_updated:page
        - avi:confluence:viewed:page
        - avi:confluence:updated:page
  function:
    - key: main
      handler: index.run
permissions:
  scopes:
    - read:confluence-content.summary

And the following in src/index.jsx:

export async function run(event, context) {
  console.log("Hello World");
  console.log({ event });
  console.log({ context });
}

I ran forge deploy and forge install with the permission scopes. But none of the events seem to be triggering. forge logs is empty.

Interestingly when I add Jira events and install it on a Jira site, it’s triggering correctly.

modules:
  trigger:
    - key: confluence-test-hello-world
      function: main
      events:
        - avi:confluence:permissions_updated:page
        - avi:confluence:viewed:page
        - avi:confluence:updated:page
    - key: jira-test-hello-world
      function: main
      events:
        - avi:jira:updated:issue
  function:
    - key: main
      handler: index.run
permissions:
  scopes:
    - read:jira-work
    - read:confluence-content.summary

Dear @IsaacKim

I would assume that you are facing this issue due to missing permissions. You won’t see a trigger in case the app does not have the permission to see them. You may want to add:

read:page:confluence
read:content.metadata:confluence
read:content-details:confluence
read:confluence-content.all

Honestly I don’t know which ones are really needed…

I hope that helps.

BR

Andreas

Thanks @andreas1, I added the scopes but it still doesn’t seem to be working.