I am using Confluence Automation and want to copy a page.
I want to do it when it receives a webhook from Jira Automation.
All the actions say "will use the page of the trigger"
But the webhook trigger describes no way to set an ID or CQL as the 'page' for subsequent actions to use, and there is no 'lookupPage' like Jira llaows for issues.
Question: How can web trigger rules do anything useful to pages?
Hi @Edward Webb
One way to do what you are describing is to use a combination of the webhook body's smart value, and the Branch Component `Branch rule / related entities`. The branching would essentially be a functional replacement for the 'lookupPage' concept.
In the sending of the webhook from Jira, you could include a page ID or a page title, then use the smart value `title = {{webhook.body.title}}` for the value of the CQL in the branch component. The rest of the action components should then be able to execute inside the branch, against the relevant Confluence entity.
Because the product is still young, there is some limitations on what is currently available, but better tooling and components to make that process easier will be coming in the future. For now, I hope that helps solve your problem!
Cheers
Sam
Thank you @Sam Harding !
That is the approach I ended up taking.
A few asks/gaps remain for my use case:
- 'Add Comment' does not respect wiki markup, markdown, or HTML -- how to add a link?
- Ability to get the created page ID as a smart value that can be recorded AND/OR
- Ability to link Jira issues with Confluence pages.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.