Mandatory documentation

Clare Lawson
Contributor
December 14, 2021

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!

1 answer

0 votes
Markus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 14, 2021

Hi @Clare Lawson


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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events