Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get web links from issue scriptrunner

Oleksii Okhmush
Contributor
February 3, 2020

Hello everyone,

I have some outgoing web links,

How can i get them via scriptrunner?

Снимок экрана 2020-02-03 в 14.14.59.png

1 answer

1 accepted

2 votes
Answer accepted
PD Sheehan
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.
February 3, 2020

Hi @Oleksii Okhmush 

You can get all your links using the RemoteIssueLinkManager

import com.atlassian.jira.issue.link.RemoteIssueLinkManager
import com.atlassian.jira.component.ComponentAccessor
def rlm = ComponentAccessor.getComponentOfType(RemoteIssueLinkManager.class)
def issue = ComponentAccessor.issueManager.getIssueObject("JSP-1922")

rlm.getRemoteIssueLinksForIssue(issue)*.getUrl()
Oleksii Okhmush
Contributor
February 3, 2020

Great thanks!

Suggest an answer

Log in or Sign up to answer