Hi guys, so we use jira queries in confluence for reporting purposes and it works really well. Im just trying to optimise how we create the reports as currently there are a lot of dates to edit weekly and if ones forgotten then the numbers are out of sync.
The current query is
project = A1 status changed TO ("In Implementation") DURING ("2018-07-29", "2018-08-04") AND "epic link" = EMPTY and assignee not in (joe.bloggs) OR status changed TO ("In UAT") DURING ("2018-07-29", "2018-08-04") AND "epic link" = EMPTY and assignee not in (joe.bloggs)
so I've had to duplicate the query after the OR function, what im trying to do is something like
project = A1 AND (status changed TO ("In Implementation") OR status changed TO ("In UAT")) DURING ("2018-07-29", "2018-08-04") AND "epic link" = EMPTY and assignee not in (joe.blogs)
So here ive not duplicated the full query just the things that differ meaning there is only one date per query. the above doesnt work but I wanted to know if anybody knew of anything similar to allow this to be done?
Hi Toby - you should be able to do this by just putting both of your status values in the same list for Status Changed To. See below where I have adjusted your second query to make it work. As long as you are using the same During dates for those statuses, this will work fine.
project = A1 AND status changed TO ("In Implementation","In UAT") DURING ("2018-07-29", "2018-08-04") AND "epic link" = EMPTY and assignee not in (joe.blogs)
Check out this article for more helpful tips and tricks: https://moduscreate.com/blog/searching-need-jira-using-jql/
Thanks, I swear when I first tried this I had to switch to using an 'OR' statement because it was looking for tickets that entered both of those states during that time frame rather than just one or the other. that does seem to work though, thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Chris answer is correct.
Besides, you may wish to remove the need for updating the filter by using relative dates within the During clause:
...DURING(startOfWeek(), endOfWeek())...
That would refer to the current week, but could be changed to last week like this:
...DURING(startOfWeek(-1), endOfWeek(-1))...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Ignacio, I did look at this when we first created the query but I believe they are all relevant to the current date? The idea here is that these reports are a static snapshot of that point in time which is why we use dates
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For taking a snapshot, the problem is that the query can potentially return different sets of issues over time, ie: once an issue is added to an epic, it won't be retrieved by the filter.
In order to avoid these changes, you may load the page at the date and time at which you wish to take the snapshot. Then, select all elements in the page with Ctrl + A and copy it with Ctrl + C (both in view page mode), and paste it with Ctrl + V to a new page (edit mode).
Because of the previous technique, it is usually better to work with relative dates, as it avoids the need for having to edit the filter's query.
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.