Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,520
Community Members
 
Community Events
168
Community Groups

Behavior - NumberException error when setting a single list field

Edited

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

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events