JQL function
startOfYear() in JQL: syntax and examples
startOfYear() stands for the first moment of the current year. Compare a date field with it for year-to-date counts, annual reviews and year-over-year checks. An offset moves the boundary by years, or by any other unit you name.
Syntax
startOfYear()
startOfYear("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 years, so "-1" is the same as "-1y". 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
created >= startOfYear() AND project = WEB ORDER BY created DESCEverything the WEB project received since January 1, newest first. A starting point for a year-to-date intake review.
Run on Jira Cloud on .
created >= startOfYear("-1") AND created < startOfYear()The whole of last year, with both bounds set. Use it as the baseline when you compare this year's intake with the previous one.
Run on Jira Cloud on .
statusCategory = Done AND resolved >= startOfYear() AND resolved < startOfYear("+1") ORDER BY resolved DESCFinished work of the current calendar year, closed by the start of next year. Handy for an end-of-year summary.
Run on Jira Cloud on .
status CHANGED TO Done AFTER startOfYear()Work moved to Done at some point this year, even if it was reopened later. The function works inside a CHANGED predicate as well as after a comparison sign.
Run on Jira Cloud on .
updated < startOfYear() AND statusCategory != Done ORDER BY updated ASCUnfinished work nobody has touched since last year. A good list to review before the new planning cycle.
Run on Jira Cloud on .
created >= startOfYear("+6M")Work created from the start of July on. A month unit lets you build a half-year boundary from the year start.
Run on Jira Cloud on .
Pitfalls
- An offset with no unit counts years.
startOfYear("+1")is the start of next year, socreated > startOfYear("+1")cannot match anything that already exists. - The unit letter is case sensitive.
"-1M"is one month before the start of the year, which is December of the previous year, while"-1m"is one minute. - The function goes on the right of the operator.
startOfYear() < createdfails with "Expecting operator but got '('" (checked on Jira Cloud, November 2026). - It is one point in time, not a list.
assignee in startOfYear()fails with "Operator 'in' does not support the non-list value 'startOfYear()' for field 'assignee'".
Questions and answers
How do I find Jira work items created this year?
Use created >= startOfYear(). It covers everything created since the first moment of the current year.
How do I search last year only in JQL?
Set both bounds: created >= startOfYear("-1") AND created < startOfYear().