Automation - Managing Jira Issue Links to Confluence Pages

Fabian Fischer
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!
February 17, 2025

Hello Community,

I'm currently building an automation workflow that creates a questionnaire in Confluence whenever a new issue is created in Jira. The specific questionnaire is determined based on the Jira issue properties.

Now, I'm facing the challenge of linking the created Confluence page to the corresponding Jira issue. I couldn't find a straightforward solution in the standard Jira automation library to achieve this.

I came across this API endpoint:

https://[site].atlassian.net/rest/confluenceIssueLink/1/confluence?issueId={{issue.id}}&pageUrl={{createdPage.url}}

However, authentication is required, and I'm unsure whether an access token can be used for this request.

What is the recommended approach to automate this linking process? Is there a best practice for handling authentication in this case?

Thanks in advance for your insights!

1 answer

1 accepted

3 votes
Answer accepted
Laura Humphries
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.
February 17, 2025

Hey @Fabian_Fischer3 

Welcome to the community!

You are on the right track to do this. You will need to use an API call to link the created page to the Jira issue that triggered the automation.

This article will walk you through it:

https://community.atlassian.com/t5/Automation-articles/Jira-Automation-Linking-a-Confluence-page-with-Jira-issues/ba-p/2898621 

It also includes a link within the article regarding how to authenticate, which includes the usage of an API token

Fabian Fischer
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!
February 17, 2025

Hello @Laura Humphries

thanks for your answer. I was abel to get it running with you information.

Thank you very much!

Like Laura Humphries likes this

Suggest an answer

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

Atlassian Community Events