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

This widget could not be displayed.

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

This widget could not be displayed.
@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.
This widget could not be displayed.

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
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

534 views 3 19
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