Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How update Radio button value with groovy


anybody have an example of how set a value of radio button with for example the value boat - road - sea and set a value during a transition using groovy (script runner) ?


Thank you ! 

1 answer

0 votes

There's a trick here - radio-buttons and check-boxes are just different representations of single-select and multi-select lists.  All four are select lists in the database, so the code for reading and setting them is the same! 

I find this a useful bookmark -

It's a script that shows us how to set all the standard types of custom field, you should be able to extract the radiobutton one from it quite easily!

Suggest an answer

Log in or Sign up to answer