Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi I want to know if I can use 'During' in a JQL with a relative date like 'last week'.
and if I use dates, are the dated I mention inlcuded in the search. Meaning if I write:
During (2025-02-01, 2025-02-28) are Feb 1st and Feb 18th included in the result?
Where can I find that information.
Hi @jeroen_wilmes, hope you're doing well!
1) Yes, you can use predicates in JQL! Here are some examples:
status WAS "Resolved" BY 62fe85c0d75f523a60eec77e DURING (startOfWeek(-1), startOfWeek(1))
status WAS "Resolved" BY 62fe85c0d75f523a60eec77e DURING ("-5d", now())
2) Yes, the boundaries of the time range are included. For example:
status WAS "Resolved" DURING ("2025/03/19", "2025/03/20")
This JQL will filter out issues that were resolved on March 19 or March 20.
Thanks a lot.
This worked perfect. Now I have a clear dashboard that always give the output of the columns of the kanbanboard over the previous week.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One last question. Do you know how a week is defined in this JQL operator?
Monday-Sunday or Sunday-Saturday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found the answer:
By default the startOfWeek and endOfWeek will use Sunday and Saturday respectively. You can add a qualifier to shift that date from the default. In your example you provided, the -1w qualifier will move the default startOfWeek date back by one full week. That is why you are getting issues from 2 weeks back.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
By default, the startOfWeek function considers Sunday to be the first day of the week
You can get more information here: QL Functions | startOfWeek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @jeroen_wilmes , You must use dates for During and yes the results include the end points.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just did a quick test to see if the error message was clear which it is
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks. I was using it the wrong way.
Also, the JQL Functions page doesn't seem to be having this function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It could be that your version is different.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, the include must have a begin and end. See the explanation from @Sergei Troshin which is excellent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think JQL natively supports During unless you are using some plugins.
Refer this link for list of functions that JQL supports
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Vishal Biyani
You can use During in JQL, please see @Sergei Troshin's answer
Also see WAS, WAS IN, WAS NOT IN and CHANGED in
https://support.atlassian.com/jira-software-cloud/docs/jql-operators/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.