Forums

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

Same name is given to Outward and Inward description

Jaspreet Kaur
Contributor
August 31, 2020

Hello Team,

link name="relates"

outward description="relates to"

Inward description="relates to"

def issueLinks = issueLinkManager.getInwardLinks(current.getId())

issueLinks.findAll { it.issueLinkType != null}.each
{issueLink ->

def linkedIssue = issueLink.sourceObject
def linkedIssueTypeName = linkedIssue.getIssueType().getName()
def linkedIssueKey = linkedIssue.getKey()
def linkedIssueStatus = linkedIssue.status.getName()
log.warn("LinkedIssue:"+linkedIssueKey.toString())
}

 

Above code did not get all issues that linked by "relates to"

Please suggest some solutions

1 answer

0 votes
John Funk
Community Champion
August 31, 2020

Hi Jaspreet,

I don't know why Atlassian creates both of those with the same name as a default, but I would change one of them. That's what we did and is works fine now. 

Go to Settings > Issues > Issue Linking to make the change. 

Suggest an answer

Log in or Sign up to answer