Jira Big Gantt Add On set Date via JSON

Maximilian Herbert
Contributor
January 10, 2024

Hey there,

I am currently trying to create a Jira Ticket via ConfiForms. Based on an IFTTT a JSON Objects gets passed to the REST API. Summary, Titel etc. work perfectly fine (which are not fields by the Big Gantt Add on).
But somehow if I want to set a Start and Enddate it wont work.

I am passing the Date exactly how it is formatted correctly (I compared it to a Ticket where a Start and Enddate is already set)

There is no error, it just does not change the Dates.


Anyone got a clue what is wrong ?

JSON looks like that:

 

{ "fields": { "project": { "key": "XYZ" }, "summary": "TEST ",       "description":"describtion",        "issuetype": { "name": "Story" }, "customfield123": "22-07-12"}}

 

Greetz max

1 answer

0 votes
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.
January 10, 2024

Anyone got a clue what is wrong ?

Yep, the date format you've used is incorrect.

Google 'jira rest api date format' or just refer to the REST API documentation, which says:

 

DatePickerField
"customfield_10002": "2011-10-03"

 The format is: YYYY-MM-DD

 

DateTimeField
 "customfield_10003": "2011-10-19T10:29:29.908+1100"

 This format is ISO 8601: YYYY-MM-DDThh:mm:ss.sTZD

Suggest an answer

Log in or Sign up to answer