Need help to build a groovy script for jira

I am struggling to build a groovy script for setting Status, So i hvae few question like:

How to grab Current Issue ID, Project ID, Wokflow ID, Link Issue ID in JIra.

It's very urgent so if any one can help me out. It would be great help.

3 answers

Could you please be more specific? Have a look here for further help.

@kostas: Point that i am trying to make here is: There is one project where we need to perform auto transition. So there is one linked issue. when ticket in one issue moves from Status A to Status B, Tickets which are linked with it should also move from Status C to Status D. So for these my approch is to gather both Workflow ID, then Grab there Issue Id and then set Status.
0 vote

Use the IssueService to transition the issues, you don't set the Status. You can only move them through legitimate transitions.

You can find plenty of code for getting linked issues with the script runner...

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
Published Apr 19, 2018 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...

366 views 0 6
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