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'
issue.statusObject.name is what you need.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.