Post Function using groovy

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

This widget could not be displayed.

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.

This widget could not be displayed.

have you gone through groovy script runner plugin

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

This widget could not be displayed.

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

510 views 3 18
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