Script runner example - Transition an issue in another project from a post step

We have two projects that are related.  In project A we reference an infrastructure change.  In project B (and C,D,E,F, etc.) we have project specific issues - most, but not all, of which reference the "parent" issue in project A as a value in a custom field.

I want to be able to transition an issue in project A as part of a post step in project B - using the value in the custom field as the project A issue id.

Any existing recipes?


1 answer

1 accepted

1 vote

What type of field is the parent issue stored in? Is it a text-field? If so is it stored as just the issue key?

There are many ways to transition an issue using the JIRA API. Your best off using IssueService to achieve this. I've found an example here that shows you how to transition an issue using it. You can ignore the part about reindexing.

If you can be more specific about how the issue is stored in the custom field i can provide you with a full example.


The parent is stored in a text field.  Thanks for the example, I will have a play with this.


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

77 views 0 5
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