Forums

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

Set due date field via REST API

aas
Contributor
November 26, 2019 edited

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

3 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
TAGS
atlassian, state of product 2026 webinar, product team report, webinar, product management, ai productivity, agile practices, team alignment, product report, atlassian learning, product strategy, discovery to delivery, survey insights

Webinar: State of Product 2026

We asked real teams how they’re coping with an industry in flux. Join this webinar to hear the research –plus tips for leveling up your team’s work.

Register now
AUG Leaders

Atlassian Community Events