JIRA API comment created and update date formats inconsistent

In postman if I make the following call I get the correct comments with created date format:

http://{jira url}/rest/api/2/issue/{issuekey}/comment

This correctly returns:

...

"created": "2017-11-10T12:56:50.487+0000",
"updated": "2017-11-10T12:56:50.487+0000"

However if I use

http://{jira url}/rest/api/2/issue/{issuekey}/comment?expand=properties

Then properties gets expanded but also the dates become:

...

"created": "Friday 12:56 PM",
"updated": "Friday 12:56 PM",
"properties": []

The problem is I'm using the JIRA SDK (from nuget) which uses expand=properties and so comments can no longer get serialised. I get an error:

'Could not convert string to DateTime: Friday 11:44 AM. Path '[0].created', line 32, position 32.'

Is this a bug or am I doing something wrong?

Thanks

1 answer

This widget could not be displayed.
Alexey Matveev Community Champion Nov 13, 2017

Hello, I just checked it. My Jira version is 7.2.2. It works correctly. Both responses are in the following format

"created": "2017-11-10T12:56:50.487+0000",
"updated": "2017-11-10T12:56:50.487+0000"

Thanks, I'm on 6.3 so it must have been fixed in a later version??

Alexey Matveev Community Champion Nov 13, 2017

Maybe, not sure :) I do not have any other version to test on 

Thanks for your help

Alexey Matveev Community Champion Nov 13, 2017

You are welcome

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

578 views 25 15
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you