Forums

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

Linking a Jira ticket to an existing Confluence Page

Ana Santos June 5, 2025

Hello, team! 

I would like to create an automation that links Jira tickets with certain characteristics to a Confluence page. This Confluence page already exists and has a fixed url. 

From what I read here - https://community.atlassian.com/forums/Automation-questions/Automatically-add-Confluence-page-link-in-Jira-ticket-based-on-a/qaq-p/2544968 - it is only possible to automate linking to a new Confluence page, created from the automation itself. 

This is consistent with what I am seeing, which is that sending a web request requires a smart value {{createdPage.url}}, which needs to be created within the automation itself. 

Since 2023, have there been any developments? Is it now possible to link a Jira ticket to a pre-existing Confluence page? 

Thank you in advance!

Ana Santos 

1 answer

0 votes
Bill Sheboy
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.
June 5, 2025

Hi @Ana Santos 

There are a couple of ways to update an existing page...

There is a new rule action Edit Page, which supports adding text to the end of a page.  This action is based on updating either the "trigger page" or the "current page" within the rule scope.  And, I expect if you add the Jira work item as a URL it will appear as such on the page.

 

As you note, the REST API endpoint to edit the page may be used for more structured content:

  • call the get endpoint for a page's current content, using the ID to select it
  • use text functions to update the content in the response, and increment the version number
  • call the update endpoint to make the changes

 

Kind regards,
Bill

Ana Santos June 6, 2025

Hello, Bill! 

Thank you so much for your answer. 

I think I did not explain myself too well. My goal is not to update the Confluence page at all. The Confluence page is a fixed SOP and I definitely don't want to add the Jira work items as URLs. 

I just want the URL of the Confluence page to be linked to the Jira work item, same way we do manually:

 Untitled.png

Hope this made sense!

Kind regards,

Ana 

Bill Sheboy
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.
June 6, 2025

Thanks for clarifying!

I believe the REST API is still needed, using the remote link endpoint.  Here is the documentation for it and an explanation in the developer community:

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events