It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Post Function using groovy

AKASH BHARDWAJ Jul 09, 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 Jul 09, 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
Rambanam Prasad Jul 09, 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 Jul 09, 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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Webinar invitation: Generate custom Jira Cloud PDF reports and exports

Jira may be a staple part of your workday, but your colleagues, customers, business partners or an auditor might need information presented in a different format, that is easy to access and read. And...

60 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you