JQL function
startOfWeek() in JQL: syntax and examples
startOfWeek() returns the first moment of the current week. Use it for weekly reports, "this week so far" boards and last week's intake. Offsets move the boundary by weeks, or by days if you write the unit.
Syntax
startOfWeek()
startOfWeek("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
project = WEB AND created >= startOfWeek("-1") AND created < startOfWeek() ORDER BY created ASCIntake of the WEB project during the previous full week, oldest first. Paste it into a Monday planning page.
Run on Jira Cloud on .
resolved >= startOfWeek("-1") AND resolved < startOfWeek()What was finished last week, for the weekly review. An empty result in a quiet week is a valid answer, not an error.
Run on Jira Cloud on .
status CHANGED TO "In Progress" DURING (startOfWeek(), now())Work that was started at any point this week. The function can sit inside DURING, with now() as the upper bound.
Run on Jira Cloud on .
statusCategory != Done AND updated < startOfWeek("-2") ORDER BY updated ASCOpen work with no change for more than two weeks, as a clean-up list for backlog grooming.
Run on Jira Cloud on .
created >= startOfWeek("-1d")A unit in the offset moves the boundary by days, not weeks. The query reaches back one day before the week begins.
Run on Jira Cloud on .
Pitfalls
- The first day of the week depends on the Jira settings. The Atlassian text says Sunday is the default when ISO8601 for the Date Picker is off in Look and feel. With the default,
startOfWeek("-1")matches the same work items as an explicit date on the previous Sunday, and a Monday start would give a different set (checked on Jira Cloud, November 2026). - The docs show
startOfWeek("+1d")as the way to get a Monday start. That shifts the boundary by a day from whatever Jira uses, so check the Look and feel setting first. A day offset likestartOfWeek("-1d")lands on the explicit date one day earlier (checked on Jira Cloud, November 2026). created >= startOfWeek()is empty early in a week or on the first day. It is not an error, the window has just started.- Write the function on the right side.
startOfWeek() < createdfails with "Expecting operator but got '('".
Ready-made queries
Questions and answers
Does startOfWeek() start on Monday or Sunday?
The Atlassian docs say Sunday by default, and Monday when ISO8601 for the Date Picker is enabled in Look and feel. Check your own site by comparing a count against an explicit date.