When I use JQL below:
project = CLN AND (created >= 2017-08-01 AND created <= 2017-08-04) ORDER BY created DESC
Items with create dates on 2017-08-04 are not included in the search results as I expect they would since I used the <= operator.
However if I use more precision:
project = CLN AND created >= 2017-08-01 AND created <= "2017-08-04 23:59" ORDER BY created DESC
I do get the results I'm looking for. Any ideas why?
I believe the default timestamp if one is not provided is "00:00" - so, the first query is actually searching for issues that fill this criteria:
project = CLN AND (created >= "2017-08-01 00:00" AND created <= "2017-08-04 00:00") ORDER BY created DESC
The "Created" Date saves the timestamp when you create an issue, so the above query is going to show you everything created at or after midnight on Aug 1, and everything before or exactly at midnight on Aug 4.
Another approach would be to use tthis query so you don't have to worry about timestamps:
project = CLN AND (created >= 2017-08-01 AND created < 2017-08-05) ORDER BY created DESC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ps, your suggestion is what we ended up doing :). One note, according to the documentation, "Note that if a time-component is not specified, midnight will be assumed."
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.