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
4,365,103
Community Members
 
Community Events
168
Community Groups

How update Radio button value with groovy

Hello,

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 - https://library.adaptavist.com/entity/update-the-value-of-custom-fields-through-the-script-console

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