JQL function
endOfWeek() in JQL: syntax and examples
endOfWeek() returns the end of the last day of the current week. It is the upper bound for "due this week" and "due next week" filters. Offsets move it by weeks, or by days when a unit is written.
Syntax
endOfWeek()
endOfWeek("inc")
Arguments
| Argument | What it does | Optional |
|---|---|---|
inc | Optional offset in the form (+/-)nn(y|M|w|d|h|m). With no unit it counts weeks, so "+1" is the same as "+1w". With no sign, plus is assumed. | yes |
Works with
- Fields: Created, Due, Resolved, Updated, custom Date or Date/Time fields
- Operators: =, !=, >, >=, <, <=, and inside WAS, WAS IN, WAS NOT, WAS NOT IN, CHANGED predicates
- Not with: ~, !~, IS, IS NOT, IN, NOT IN
Examples
duedate >= startOfDay() AND duedate <= endOfWeek() AND statusCategory != Done ORDER BY duedate ASCOpen work still due before the week ends, soonest first. A Monday stand-up can start from this list.
Run on Jira Cloud on .
duedate >= startOfWeek("+1") AND duedate <= endOfWeek("+1") ORDER BY duedate ASCEverything due next week. Both bounds use the "+1" offset so the window is exactly one week.
Run on Jira Cloud on .
project = MOB AND duedate <= endOfWeek("+1d") AND statusCategory != DoneOpen MOB work due by the end of Sunday, for teams that treat Sunday as the last day.
Run on Jira Cloud on .
duedate = endOfWeek()Work due on the last day of the week. Handy for a Friday-style check on what is landing at the boundary.
Run on Jira Cloud on .
duedate <= endOfWeek("+1") AND duedate > endOfWeek()Only the following week's deadlines, without this week's.
Run on Jira Cloud on .
Pitfalls
- The docs say Saturday is the last day of the week by default.
duedate = endOfWeek()matches work due on that Saturday (checked on Jira Cloud, November 2026). - The docs example
due < endOfWeek()leaves out work due on the last day itself, because a due date has no time. Write<=to include it (checked on Jira Cloud, November 2026). - A lone number in the offset counts weeks.
endOfWeek("1")is next week's end and is accepted, which is easy to read as one day.
Ready-made queries
Questions and answers
Which JQL finds work items due next week?
Use duedate >= startOfWeek("+1") AND duedate <= endOfWeek("+1").