I'm trying to modify the value of a custom field in Jira.
I do it through the following Curl:
curl -D- -u 'x:y' -X PUT --data '{"fields":{"customfield_67":{"value":18}}}' -H "Content-Type: application/json" https://host/jira/rest/api/2/issue/PRUEBAS-315Modifying strings I don't have problems, but I do trying to modify this when it is a number. Even though I am sending a number, it tells me that it is not. I have followed the documentation:
https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/
Can someone tell me what I'm doing wrong?
Thank you very much.
**********************************
Code: 400
Response: {"errorMessages":[],"errors":{"customfield_67":"Operation value must be a number."}}/jira/rest/api/2/issue/test-2/editmeta:
"customfield_67":{
"required":false,
"schema":{
"type":"number",
"custom":"com.atlassian.jira.plugin.system.customfieldtypes:float",
"customId":182
},
"name":"Unit Tests Coverage",
"operations":[
"set"
]
},