Forums

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

Error when using ConfiForms to set value in a custom numeric field in Jira

Mechee
Contributor
August 9, 2023

When submitting my form I get the following error:

com.atlassian.sal.api.net.ResponseException: Error communicating with Jira, {"errorMessages":[],"errors":{"customfield_14214":"Operation value must be a number"}}

JSON I'm sending for that field looks like:

 "customfield_14214": "[entry.fees]",

And the field type is set to Numeric. I tried using the .formatNumber() virtual function but that didn't help. 

Any ideas?

2 answers

1 accepted

0 votes
Answer accepted
Mechee
Contributor
August 9, 2023

Actually, I just answered my own question. JSON for numeric fields don't need quotes. 🤦‍♀️

0 votes
Alex Medved _ConfiForms_
Community Champion
August 9, 2023

Remove the quotes... if that is a numeric value in JSON then it should not have quotes around (these are for text values)

Suggest an answer

Log in or Sign up to answer