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
Community moderators have prevented the ability to post new answers.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.