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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

80 views 0 5
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