Forums

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

unable to update number type custom filed

sunil August 11, 2020

Hi,

I am unable to edit or update a custom filed with a value where custom filed is a number and below is the query i am using to edit or update

 

curl -D- -u c:d -X PUT -d '{ "update": { "customfield_10112" : "set": 1.190 } }' -H "Content-Type: application/json" http://localhost:8080/rest/api/2/issue/pro-625

curl -D- -u c:d -X PUT --data '{"fields":{"customfield_10112":1.190 } }' -H "Content-Type: application/json" http://localhos:8080/rest/api/2/issue/pro-625

 

Whenever i run the above queries i am getting HTTP 204 error , can someone please help me on how to edit or update.

the main reason for asking this i am passing datakey.json file to jira while creating jira issue and later i found json is picking 1.19 and 1.190 both as same values . so i though once jira issue created and then update or edit the customfiled_10112 (package version , type = number) with actual value.

 

 

Thanks,

KSunil

 

 

 

 

0 answers

Suggest an answer

Log in or Sign up to answer