The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Jira Automation: Linking a Confluence page with Jira issues

This article helps build a solution using Jira Automation and Confluence REST API to link a newly created Confluence page with a Jira issue.
For instance, When a confluence page is created using Jira Automation, the page link should be added to the Jira issue.

Adding the Confluence page link into the Jira issue.

This can be done using the Create or update remote issue link API endpoint, here's an example of the request:


URL: https://<SITE_URL>/rest/api/3/issue/{{issue.key}}/remotelink
Method: POST

Web request body:
{
"object": {
"title": "{{issue.key}} {{issue.summary}}",
"url": "{{createdPage.url}}"
}
}


Headers:


Alternatively, you can add the smart value that includes the page URL in a comment or a field:

 

{{createdPage.url}}


Illustration:

addpageURltoJiraissue.png

Thank you for reading and Happy Automation! 

Other related articles:

Jira Automation: Updating a Confluence page with information from Jira issues

3 comments

Comments for this post are closed

Community moderators have prevented the ability to post new comments.

Carlos AdriƔn PerƩz Dƭaz
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 20, 2025

Hi, I'm basically trying to link a confluence link into a jira issue via automation as well. I have followed all the steps as described above, however I'm getting the following message:

ERROR 404

{
  "errorMessages": [
    "Issue does not exist or you do not have permission to see it."
  ],
  "errors": {}
}

 

I've permission and access and edit the Jira issue. Any clue where the error could be? 

 

Thanks in advance.

 

Like • Steffen Opel _Utoolity_ likes this
Ralf Rutke
Contributor
March 12, 2025

Hi,

as I have spent some hours with reading and trail an error, here are some hints:

It might be the case that most of the people here don't need that description. Anyway, it's for the rest like me :-)

Like • Steffen Opel _Utoolity_ likes this
Miguel Santana
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!
July 1, 2025

The same problem happens to me, and in addition to the steps described in the previous post, I solved it by adding .urlEncode as part of the smart values inside the brackets.

Example:

https://<Site_URL>/rest/api/3/issue/{{issue.key.urlEncode}}/remotelink
Hope it helps.

Comments for this post are closed

Community moderators have prevented the ability to post new comments.

TAGS
AUG Leaders

Atlassian Community Events