Script for invoking a specific transition of an issue from the post function of the issue which is linked to it.


I am searching for the scripts or the methods by which i can invoke a specific transition of an issue from the Post function of the linked issue, Let's say, From issue A-231 if i am doing "Resolve issue" then the Transition of Issue B-23 (i.e. "Submit for Approval") should execute automatically. Can that happen. I am not that into coding, please try to give as much detail as you can.

3 answers

1 accepted

1 vote
Accepted answer
Henning Tietgens Community Champion Apr 21, 2013

You can get the links to the issue with a script like this.

IssueLinkManager issueLinkManager = ComponentAccessor.issueLinkManager
def linksOut = issueLinkManager.getOutwardLinks(
def linksIn = issueLinkManager.getInwardLinks(

Now you must identify the correct link (by linktype and direction?), e.g. like this.

foundLinks = linksIn.findAll{it.getIssueLinkType().getName() == 'Blocker'}

and than transition the corresponding issue(s) through the IssueService (see "Transitioning an existing Issue" on

foundLinks.each{ link ->
    def issue = link.getSourceObject()
    // ... issueService transition ...

Be aware of using the corresponding method to get the linked issue. getSourceObject() for inward links and getDestinationObject() for outward links.


Besten dank Herr Henning, The code is working.

> I am not that into coding

For your requirements you will need to get into coding... there isn't off the shelf solutions for such specific requirements.

I agreed Sir, I will surely count your point.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,737 views 17 21
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you