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

1 comment

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.

 

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events