i need to move Stauts from A to C on transition using groovy script on post function

AKASHB July 8, 2013
Hi, Its very ugent and i am new to groovy script, i am trying to achieve is, I need to move my status from A to C for ex on transition my cussrent status is A so on tranisition it should automatically move to Status C , skipping Status B.

3 answers

1 accepted

3 votes
Answer accepted
AKASHB July 25, 2013

I have found the answer and made my groovy script. Anybody need help then you can revert for the same.

Mike Whitlock May 22, 2014

Aksah, could you send me a copy of your groovy script? I need to do this exact thing and can't find any help online. Thanks Mike Whitlock mwhitlock@ercot.com

1 vote
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 8, 2013
Warren McInnes
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 25, 2013

I've used this method and it works really well. Thanks Jamie :)

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 8, 2013

To begin with, you need to think about how and when you want to do this.

Two approaches.

1) Go from A to B, read the issue, make the decision that it should be in status C and move it automatically. Make sure you have a transition from B to C and write a listener to catch the "A to B" event.

2) Go from A to C direct - you'll need a transtion from A to C in your workflow, and a way to detect that the issue should move (e.g. a listener to catch the "create" event, and jump through the transition)

I think you need to clarify when you want to run this code, then we can help you more.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 8, 2013

... and then I should add the link Jamie just gave you...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events