Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Mandatory documentation

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

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
Site Admin
TAGS
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

55 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you