It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Set due date field via REST API 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

1 vote
Answer accepted

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

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you