Hi where I can found documentation for get the value of my checkbox or someone can help me It will be apreciate.
10424 is a list of checkboxes
[x ] option1
[ ] option2
[ ] option3
scriptRunner: Behaviour
def r = getFieldById("10424").getValue().toString()
Answer: null but its suppose to be "option1"
thank you
Hi @Aurélie Geoffroy ,
You can try the following code and see if it helps.
//name of the custom field def customFieldName = 'Checkboxes' //get the custom field object def customFieldObject = customFieldManager.getCustomFieldObjectByName(customFieldName) Issue issue = issue //get all the values of the custom field def customFieldValues = customFieldObject.getValue(issue)
Thanks,
Swathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.