Forums

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

Groovy Script Runner Automatic Transition

Cesar Covarrubias
Contributor
September 24, 2012

I am trying to use Groovy Script Runner to auto transition an issue if it is in a certain status. I'm using "Open" as my test/example:

issue.status?.id == 1
issue.status?.name == 'Open'

Neither of these conditions work. Does anybody know why? Also, I'd like to add a second conditional but I wanted to know if this is the correct syntax:

cfValues['customRadioFieldName'] == 'Yes'

1 answer

1 accepted

0 votes
Answer accepted
Harry Chan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 24, 2012

issue.statusObject.name is what you need.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events