I am trying to use the below curl command, to update DueDate field, however, the O/P is :
curl -u <userid> <api-url> -i -H "Content-Type: application/json" -d '{"update": {"duedate":"null"}' -X PUT -sS
{"errorMessages":["Can not deserialize instance of java.util.ArrayList out of VALUE_STRING token\n at [Source: org.apache.catalina.connector.CoyoteInputStream@43077033; line: 1, column: 13] (through reference chain: com.atlassian.jira.rest.v2.issue.IssueUpdateBean[\"update\"])"]}
Could someone in the know, please shed some light?
Community moderators have prevented the ability to post new answers.
Try sending something like this instead
curl -u <userid> <api-url> -i -H "Content-Type: application/json" -d '{"update": { "duedate": [ {"set": "2014-05-22"} ] } }' -X PUT -sS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would try putting the data into a file and using the curl -d @filename.ext notation. I find that things tend to work better that way, especially when it comes to quotation marks on the command prompt.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.