It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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.

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Apr 03, 2019 in Marketplace Apps

How to estimate projects more accurately?

Gaining insight into your team’s effectiveness and choosing the right estimation technique.   Estimating projects is hard. It is because people have the tendency to underestimate the time thin...

318 views 2 11
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