# startOfWeek() in JQL: syntax and examples

URL: https://goingstellar.ro/reference/jql/startofweek/

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

- `inc` (optional: yes): 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.

## 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 ASC
```

Intake of the WEB project during the previous full week, oldest first. Paste it into a Monday planning page. Run on Jira Cloud on 2026-11-29.

```
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 2026-11-29.

```
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 2026-11-29.

```
statusCategory != Done AND updated < startOfWeek("-2") ORDER BY updated ASC
```

Open work with no change for more than two weeks, as a clean-up list for backlog grooming. Run on Jira Cloud on 2026-11-29.

```
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 2026-11-29.

## 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 like `startOfWeek("-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() < created` fails with "Expecting operator but got '('".

## Ready-made queries

- [Due this week](https://goingstellar.ro/tools/jql-examples/#due-this-week)
- [Resolved last week](https://goingstellar.ro/tools/jql-examples/#resolved-last-week)

## 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.

## Related

- [startOfDay()](https://goingstellar.ro/reference/jql/startofday/)
- [startOfMonth()](https://goingstellar.ro/reference/jql/startofmonth/)
- [endOfWeek()](https://goingstellar.ro/reference/jql/endofweek/)
- [now()](https://goingstellar.ro/reference/jql/now/)
- [created](https://goingstellar.ro/reference/jql/created-field/)
- [resolved](https://goingstellar.ro/reference/jql/resolved-field/)

## Sources

- [JQL functions (Atlassian Support, Jira Cloud)](https://support.atlassian.com/jira-software-cloud/docs/jql-functions/)

