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
atlassian, confluence administration, confluence admin training, confluence learning path, manage users and permissions, confluence certification, atlassian learning, cloud admin tools, streamline collaboration, confluence admin best practices

🚨New Confluence Admin Course Alert!

Manage Confluence like never before! This new learning path teaches you how to manage content, users, and permissions while optimizing user experience. Built for admins at all levels who want to confidently lead and unlock more innovative collaboration.

Learn more
AUG Leaders

Atlassian Community Events