How to set duedate field on issue via rest api

Chris Johnston May 7, 2018

I am attempting to set the due date for a new issue however it's not being set when I post the json object, the issue is created however.  I noticed some posts referencing a customfield for setting the duedate however if I manually set a due date and call a get against the issue I don't see any fields which have the date info (epoch or otherwise) on customfields, just duedate.  I have tried various formats for the date and have had no luck in setting it via an API call.

"duedate" : "1525788000000"

"duedate" : 16-5-2018"

"duedate" : 16-5-2018Txxxxxxxx"

etc..

thanks.

1 answer

1 accepted

3 votes
Answer accepted
Alexey Matveev
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.
May 7, 2018

Hello,

Try to pass like this

  "duedate": "2011-03-11"

Chris Johnston May 8, 2018

The issue ended up being an issue with my json transformation from ui to api; I just tested it successfully.  Thanks Alexey.

Suggest an answer

Log in or Sign up to answer