Set due date field via REST API

aas November 26, 2019

Hello everybody. I need to set some data and time in field  duedate via REST API and can't set time. Always time sets 0:00. But I can change time manually. Here is my request 

curl -i -u "test:test" -H "Content-type: application/json" -H "Accept: application/json" -d"{\"fields\":{\"duedate\":\"2020-12-01 05-00\"}}" -X PUT https://jira/rest/api/2/issue/${issueKey}

And if it not possible can I write my own REST Endpoint which will add not only date but time too into dudate field?

1 answer

1 accepted

2 votes
Answer accepted
David_Bakkers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 28, 2019

Unless you have a custom field called 'Due Date', the built-in Due Date field only accepts a date, not a time as well.

Try just {duedate : "2020-12-01"}

Suggest an answer

Log in or Sign up to answer