I have a template in Confluence for documentation. When a Jira ticket is put into Ready To Close Status, I would like a link to the template to appear so the dev has to create documentation before closing the tickets. Help!
This can be done with Automation for Jira, however it's not low code and will require knowledge of REST API's.
In Automation for Jira's current state there is no action to create a page within Confluence, so we need to do this via REST API.
Below are the two endpoints you'll need to hit.
1) Create the confluence pagehttps://yourinstance.atlassian.net/wiki/rest/api/content
2) Save some variables from the payload
3) Hit this endpoint plugging in those variables to create a link to the Confluence page fromt he Jira Issue. https://yourinstance.atlassian.net/rest/confluenceIssueLink/1/confluence?issueId={{issue.id}}&pageUrl=https://yourinstance.atlassian.net/wiki/spaces/IN/pages/{{webResponse.body.id}}/{{spacename}}
https://developer.atlassian.com/cloud/confluence/rest/
https://www.atlassian.com/software/jira/guides/expand-jira/automation
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.