Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can you retain Confluence linking with Jira Automation Rules

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

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
Community showcase
Published in Jira

⏰ Day in the life of a Jira Admin!

Hello Community! We thoroughly enjoyed this just-for-fun conversation in the Jira Admin Group about what it's like to be a Jira Admin. For #JiraJuly, our talented designers created these graphics t...

886 views 2 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you