Hello !
I’m trying to set a value for a custom field i’ve added to the create issue screen using AJS
object
the custom field is of type : “Select List (single choice)
”
to set the value i’m using the below commend (10020 is the id of one of the options)
AJS.$('#customfield_10044-field').val(10020)
i’ve also tried to set the name and not the id but it’s not working
AJS.$('#customfield_10044-field').val("product1")
but both does not work, once i save the new issue the value of the custom field is empty
what i’m doing wrong ?
this comment does works on a “simple” fields like “summery” field which is a input of type text
Thanks!