Forums

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

checkboxes value

Aurélie Geoffroy December 7, 2018

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

 

 

 

1 answer

1 accepted

0 votes
Answer accepted
Deleted user December 8, 2018

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

Aurélie Geoffroy December 10, 2018

:) thank

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events