Need help to build a groovy script for jira

AKASHB July 4, 2013

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

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 4, 2013

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...

0 votes
AKASHB July 4, 2013
@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 votes
Tsol
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 4, 2013

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events