I am using the following code:
import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.link.IssueLinkManager;
def issueManager = ComponentAccessor.getIssueManager()
def issueObject = issueManager.getIssueObject("VS-17145")
def linkManager = ComponentAccessor.getIssueLinkManager()
def jsdIssueLinkManager = ComponentAccessor.getComponent(IssueLinkManager)
log.debug(linkManager.getInwardLinks(issueObject.id))
log.debug(linkManager.getOutwardLinks(issueObject.id))
This code currently only gives me linked issues within the Jira instance the current issue is a part of. If one of the issues linked is a part of a different Jira instance, it is not retrieved. Is there a way to fix this?
Hi Daniel,
You can probably use RemoteIssueLinkManager API to get the remote link issue. For more code samples, you can refer to our library.
I hope this helps!
Kind regards,
John Chin
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.