Can you retain Confluence linking with Jira Automation Rules

Daniels July 19, 2021

Hello,

 

We utilize a recurring automation rule for on-going maintenance for our clients website. We also have a singular document that we track any sort of patches or workarounds on that we link to this task so everyone knows what to look for.

Is it possible for those Confluence pages links to be retained when using an automation rule? So far I only see the ability to do this with issue links when building the automation and had assumed these links would be retained since they generally are when manually cloning an issue.

1 answer

0 votes
Alex
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.
July 20, 2021

Hi @Daniels 

This is a great use case to leverage Jira Cloud REST API inside your Automation.

I ran a quick lab and managed to get the remote link from a Jira issue and create a remote link to the issue cloned from the original one. Therefore, you can reuse this solution to your scenario:

Untitled.png

 

A few tricks:

Get Remote Link

  • Webhook URL: https://jira-site.atlassian.net/rest/api/3/issue/issue-key/remotelink
  • HTTP Method: GET
  • Headers: Content-Type : application/json
  • Authentication: See How to authenticate to Jira REST API 
  • Check the "Wait for response" option so that you can use info from the body with smart value webhookResponse.body to create your post request 
  • Webhook body: EMPTY

 

Post Remote Link

 

{

"globalId":
"appId=&pageId=",
"application":
{
"type": "com.atlassian.confluence",
"name": "System Confluence"
},
"relationship": "Wiki Page",
"object":
{
"url": "https://confluence-site.atlassian.net/wiki/pages/viewpage.action?pageId=23234",
"title": "Wiki Page",
"icon":{},
"status":
{
"icon":{}
}
}
}

Cheers, 

 

Alex

Suggest an answer

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

Atlassian Community Events