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

Retrieve Confluence links in scripted field in the Issue

Hi,

 

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

Thanks

 

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
import com.atlassian.jira.issue.link.RemoteIssueLinkManager

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

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across Jira Cloud instance.   📢 Get y...

163 views 7 8
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