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
Community showcase
Published in Marketplace Apps & Integrations

Now Available: AWS Service Catalog Connector for Jira Service Desk

We are excited to share that AWS Service Catalog Connectors for Jira Service Desk (JSD) Cloud and JSD Server/Data Center are now available in the Atlassian Marketplace. Users can now request admin-ap...

526 views 0 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you