Hi,
I have made a get API call to fetch all the pull-requests in a repository:
https://company.com/rest/api/1.0/projects/AIRW/repos/canonical/pull-requests
Here is a snippet of the response:
"id": 26903,
"version": 203,
"title": "CMSVC-6964 Created On & Created By shown incorrectly in excel",
"description": "Updating the property names in the view so they are mapped correctly while exporting.",
"state": "OPEN",
"open": true,
"closed": false,
"createdDate": 1528960509081,
"updatedDate": 1529690155917,
What is the updateDate format here? How do I know how many days ago it was updated?
Thanks for your feedback @Kaushik Veluru!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kaushik Veluru,
I've just done some testing on this and both the createdDate and the updatedDate are in Epoch Unix Time with a millisecond precision.
However, before applying a standard conversion, you'll need to reduce the precision of the field by diving for 1000 .
So, in your examples:
1528960509081 = 1528960509081/1000 = 1528960509 = 14th of June 2018 @ 7:15am (UTC)
1529690155917 = 1529690155917/1000 = 1529690155 = 22nd of June 2018 @ 5:55pm (UTC)
Cheers,
Caterina - Atlassian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.