Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Getting list of linked issues from MutableIssue object

Jamie Sawyer June 14, 2011

Hi all,

I am trying to utilise the JIRA Scripting Suite to update the linked issues of an issue in a Post-Function. Looking at the API, I cannot see a way of producing an enumerable of issue objects which are linked to the current issue.

From what I can see, I need to produce an IssueLink object - but I can't see a way of doing this through the JIRA Scripting Suite. Does anyone have an idea?

Kind regards,

Jamie Sawyer

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Answer accepted
Michael Tokar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 26, 2011

Hi Jamie,

Using the Scripting Suite, you should be able to utilise any Component of JIRA in your script, is that right? If so, have a look at the IssueLinkManager: http://docs.atlassian.com/jira/latest/com/atlassian/jira/issue/link/IssueLinkManager.html

In particular, the getLinkCollection() method should be able to give you a list of linked issues for a specified issue.

Hope this helps,

Michael

0 votes
Jamie Sawyer July 11, 2011

Hi Michael,

Apologies for the delay getting back to you, missed the email pop up until Jeremy marked it correct! This looks pretty much perfect. I've actually started using [script runner|https://plugins.atlassian.com/plugin/details/6820] now, which seems to be more well-documented, and your solution is pretty much exactly what I did in Script Runner!

Thanks for your help,

Jamie Sawyer

TAGS
AUG Leaders

Atlassian Community Events