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

0 vote

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.

0 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

134 views 0 4
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