Smart value for Confluence content links in Jira Tickets

Jeanna Knowles
Contributor
July 19, 2024

I am trying to create an automation for Jira, its mostly pretty basic. 
I have a "template" jira issue that we are using. 
My automation is:
Manually trigger
Then lookup issues > key=ABC-123
And create new Task
In the description box I have :
{{lookupIssues.description}}
This is working and pulling in the correct information.

However I have Confluence content links that I need to pull in as well. I can not figure out how to get this pulled in.
2024-07-19_14-31-25.jpg
I have tried to set Confluence (Link) with a number of values and can not figure out what is the correct value. Currently I have {{lookupIssues.url}}
2024-07-19_14-34-29.jpg
I have tried {{lookupIssues.contentlink}} and others. I have tried to plug them into the description field to see if I can get anything to pull in. I have been unsuccessful.
Any assistance would be appreciated.

2 answers

2 accepted

1 vote
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 19, 2024

Hello @Jeanna Knowles 

You could use a Send Web Request action to call the Jira REST API to retrieve the Remote Links for the template issue.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-remote-links/#api-rest-api-3-issue-issueidorkey-remotelink-get

You would have to parse the output to pull the Confluence links from it.

There is not an action in Automation to create a link to an existing Confluence page from a Jira issue. You would have to use Send Web Request again to call the API to create the link between the new issue and the Confluence content.

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-remote-links/#api-rest-api-3-issue-issueidorkey-remotelink-post

 

If you've never worked with Send Web Request before, there is an article about it here:

https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828

Jeanna Knowles
Contributor
July 22, 2024

Thank you, I will check it out. 

Khira Niemeier
Contributor
October 15, 2024

I have a similar problem and wanted to ask for help. :)

We are trying to set up an automation that clones a Ticket and also clones the Confluence Pages linked to the cloned Issue.

Unbenannt.jpg

I didn't find out how I can get these links.

Could you maybe help me? My problem is I can't manage to get the right idea for the code, even after looking up the linked pages above.

Jeanna Knowles
Contributor
October 15, 2024

@Khira Niemeier I never got this to work. Sorry

Like Khira Niemeier likes this
Khira Niemeier
Contributor
October 15, 2024

@Trudy Claspill maybe you could help regarding this topic? :) 

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.
October 15, 2024

Hi @Khira Niemeier 

Trudy already described the solution in her first post: call the REST API endpoint to get the external links, using the Send Web Request action, and parse out the ones for Confluence.  I believe they appear with the relationship type of "wiki".

Kind regards,
Bill

Like Khira Niemeier likes this
0 votes
Answer accepted
Luis Felipe Studzinski Santos July 19, 2024

@Jeanna Knowles 

Unfortunately, there isn't a direct Smart Value specifically for Confluence content links. However, you can try to include the content link in a custom field or within the description of the template issue itself, which then can be referenced.

Jeanna Knowles
Contributor
July 22, 2024

Thank you, I was thinking that might be the case. 

Suggest an answer

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

Atlassian Community Events