Jira v8.5.7
It appears that the date/time returned from a JQL search to the REST API differs from the date/time returned from the issue directly:
Using the REST API to search:
<a href="https://issues.couchbase.com/rest/api/latest/search?jql=key+in+(%22CBSE-8965%22)+order+by+updated+desc&fields=updated&startAt=0&maxResults=2000" target="_blank" rel="noopener noreferrer nofollow">https://issues.couchbase.com/rest/api/latest/search?jql=key+in+(%22CBSE-8965%22)+order+by+updated+desc&fields=updated&startAt=0&maxResults=2000</a>
The result is:
{
expand: "names,schema",
startAt: 0,
maxResults: 1000,
total: 1,
issues: [
{
expand: "operations,versionedRepresentations,editmeta,changelog,renderedFields",
id: "139745",
self: "https://issues.couchbase.com/rest/api/latest/issue/139745",
key: "CBSE-8965",
fields: {
updated: "2020-10-08T16:42:27.000-0500"
}
}
]
}See that the 'updated' field is "2020-10-08T16:42:27.000-0500"However, if I use the REST API to fetch the full document contents:
<a href="https://issues.couchbase.com/rest/api/latest/issue/CBSE-8965" target="_blank" rel="noopener noreferrer nofollow">https://issues.couchbase.com/rest/api/latest/issue/CBSE-8965<br><br></a>Then the return 'updated' field is: updated: "2020-10-08T16:42:27.259-0500"<br><br>So it would seem that JIRA is rounding the date in different places