Hi
I am struggling to retrieve the value of a radio button using scriopt in the derscription field. What is the correct way to retrieve the selected radio button value.
Thanks,
Lakshmi
Hi Lak,
here your javascript code
jQuery(document).ready(function($) { var value = jQuery("#customfield_10200-val").text().trim(); console.log(value); })
Keep in mind that you have to use the correct Custom Field Id (10200 is the id in my instance).
Hope this helps,
Fabio
Which version of JIRA? Also,are you runnig the script inside of the workflow (post-function)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.