Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Retrieve Confluence links in scripted field in the Issue



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



1 answer

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

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  ? 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

174 views 1 6
Read article

Atlassian Community Events