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

Retrieve Confluence links in scripted field in the Issue

Avinash Prasad July 16, 2018



How to retrieve the Confluence links in an issue to scripted field ?



1 answer

Suggest an answer

Log in or Sign up to answer
2 votes
Thanos Batagiannis _Adaptavist_
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 16, 2018

Hi Avinash.

If this is a ScriptRunner scripted field then you can access the remote links and find those where the application name is Confluence, something like 

import com.atlassian.jira.component.ComponentAccessor

ComponentAccessor.getComponent(RemoteIssueLinkManager).getRemoteIssueLinksForIssue(issue)?.findAll {
it.applicationName == "Confluence"

Please let me know if this does the trick, 

Regards, Thanos

Avinash Prasad July 16, 2018

Hi @Thanos Batagiannis _Adaptavist_,

Thank you for the reply.

How to print the title of the page (hyperlinked) as the output of the scripted field  ? 

AUG Leaders

Atlassian Community Events