Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow transition in groovy script

GS1337
Contributor
May 27, 2019

Hi,

 

i have a groovy script where i can rate an issue and if it has a certain score I want it to automatically transition to a certain workflow condition

 

if (certain condition is met)

             move issue to certain workflow

 

 

I havnt really found anything that works so far. If im done rating the issue a custom field has a certain value, and depending on that value the issue should transition into a different workflow status.

 

Thx for your help guys.

1 answer

1 vote
Tarun Sapra
Community Champion
May 27, 2019

Hello @GS1337 

You can write a custom listener, which listens to updates on custom fields. Once you rate a issue then you are basically updating the custom field and then the listener can execute and transition the issue to desired status but in order to transition the issue using groovy an transition should exist in workflow from the current status to the target status.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events