I'm trying to set a time value via REST and I can't get the right format.
I've tried:
2012/03/30
2012-03-30
30-MAR-2012
and many others... but none of them seem to work correctly. I keep getting a bad HTTP response. when I look at the value in the issue it looks like I should be able to put:
{fields=>{customfield_12345 => "2012-03-31"}} every time.
Hi! It's a Date Picker field type. The format is 02/Jun/12, which I've tried.
I could switch to a DateTime field type, but don't those have 'pickers' too?
Hi Tom!
Sorry for the late response here. I have tried to insert some date into Date Picker custom field, and I am also getting the same exceptions when running the following cURL REST request:
curl -u admin:admin -X PUT --data '{"fields" : {"customfield_10000":"2012-06-02"}}' -H "Content-Type: application/json" http://5.125.147.3:8085/jira/rest/api/2/issue/TP-3
However, I've tried to get the issue JSON data using the GET method, and I noticed that the date format for the custom field is rendered as 2012-06-02 instead.
Hence, the following REST request should work:
curl -u admin:admin -X PUT --data '{"fields" : {"customfield_10000":"2012-06-02"}}' -H "Content-Type: application/json" http://5.125.147.3:8085/jira/rest/api/2/issue/TP-3
Hope that the info helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not sure what changed, but it's working now...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.