Forums

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

How update Radio button value with groovy

Julian from AF
Contributor
August 10, 2022

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
Nic Brough -Adaptavist-
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.
August 10, 2022

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