Post Function using groovy

AKASHB July 9, 2013
Hi, I am trying to write a groovy script which perform issue transition. my questions are: 1) I need to do transition from Status A to Status C or you can say jump/skip. 2) There is one custom field which comes on selection from screen on certain transition, this custom field value is the one which follows different workflow and different issue type, Now i have grabbed that value, this custom filed is from other issue type, so my motive is when i move from one state to another in my current ticket or issue, Custom field associated with this ticket should move from one state to another with appropriate issue type of another ticket. Can anybody please help me out with this?

3 answers

1 accepted

0 votes
Answer accepted
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 9, 2013

Q1) You must have a transition from A to C to do that.

You've already had the process explained at https://answers.atlassian.com/questions/188268/i-need-to-move-stauts-from-a-to-c-on-transition-using-groovy-script-on-post-function

Oh, and you can NOT do this in a post function without a lot of work, and I've never seen it work anyway. You need to do it in a listener.

Q2) I don't think I understand what you are asking here. The most simple case is that you want to make the decision to execute the A->C transition based on "Custom field X has a value of Y". Is that correct?

But you talk about another issue, and I am not grasping what that has to do with it.

1 vote
RambanamP
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 9, 2013

have you gone through groovy script runner plugin

https://jamieechlin.atlassian.net/wiki/display/GRV/Post+Functions

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 9, 2013

Q1) You must have a transition from A to C to do that.

You've already had the process explained at https://answers.atlassian.com/questions/188268/i-need-to-move-stauts-from-a-to-c-on-transition-using-groovy-script-on-post-function

Q2) I don't think I understand what you are asking here. The most simple case is that you want to make the decision to execute the A->C transition based on "Custom field X has a value of Y". Is that correct?

But you talk about another issue, and I am not grasping what that has to do with it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events