I have an existing automation that creates a Confluence page when a new task (work item) is created, and then assigns the task to the right person in team.
I now want the pages created in confluence to be automatically linked to the corresponding task in JIRA. Can you advise the best way to do this?
Welcome to the community.
You can do tis within automation.
In the automation where you create the confluence page, you need to add a web request action.
You need to connect to: https://<your-instance-name>.atlassian.net/rest/confluenceIssueLink/1/confluence?issueId={{triggerIssue.id}}&pageUrl={{createdPage.url}}set the HTTP method to Post and set the We request body to Empty
Check the option: Delay execution of subsequent rule actions until we've received a response for this web request
You will need to specify the headers as:
Key: Content-Type Value: application/json
Key: Authorization Value: Basic <your api token>
Hi @Yamini_Jayaram ,
Marc is perfectly right, if you want to stick on built-in automation as solution, the REST-API is the way to go.
Beside of Automation there are also specialized apps available that focus on the task of creating long lasting structured documentation artifacts in Confluence, based on work happening in Jira
I use to differentiate the approaches like that
1) One-Time page creation with Jira Automation
Just use Jira Automation to create a page and with the help of smart values you can set jira field content into a structure you want. Creating a good looking page can be a bit of a pain.
Pros:
Cons:
2) Use an app specialized for this use case like AutoPage or competitors
Got to mention: I am part of the developement team of Autopage.
Pros:
Cons
Cheers
Armin
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.