Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation for linking confluence page to Jira

Yamini_Jayaram
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 22, 2025

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?

2 answers

1 accepted

2 votes
Answer accepted
Marc - Devoteam
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.
May 22, 2025

Hi @Yamini_Jayaram 

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>

 

0 votes
Armin Meyer _Seibert - Coderay_
Atlassian Partner
May 23, 2025

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:

  • It's built in and therefore cheap

Cons:

  • It's a one way solution and keeping page and jira issue in sync is tricky
  • Styling the page can be a pain, because you need to do it with markup

 

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.

Autopagehttps://marketplace.atlassian.com/apps/1218503/autopage-create-pages-in-confluence-from-jira-issues?hosting=cloud&tab=overview

Pros:

  • Good Templating options to built good looking pages
  • Sync options to keep page and jira issue content in sync
  • Build up page trees according to parent-child-issue-hierarchies

Cons

  • Extra costs

Cheers

Armin

Suggest an answer

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

Atlassian Community Events