The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Behavior - NumberException error when setting a single list field

Vivian Escalante
Contributor
February 1, 2019

Hello all, 

So when I set a custom field's option to "No" for a single list I get this error. Any idea why? I have other single list custom fields and I'm able to set them with Yes/No options easily.

Thanks. 

 

customfield.setFormValue("No")

java.lang.NumberFormatException: For input string: "No"
	at com.onresolve.jira.groovy.user.FormField.getOptionString(FormField.groovy:329)
	at com.onresolve.jira.groovy.user.FormField.getValue(FormField.groovy:229)
	at com.onresolve.jira.groovy.user.FormField$getValue$9.call(Unknown Source)
	at Script1.run(Script1.groovy:251)

 

 

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events