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