# startOfYear() in JQL: syntax and examples

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

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

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

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

Everything the WEB project received since January 1, newest first. A starting point for a year-to-date intake review. Run on Jira Cloud on 2026-11-29.

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

```
statusCategory = Done AND resolved >= startOfYear() AND resolved < startOfYear("+1") ORDER BY resolved DESC
```

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

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

```
updated < startOfYear() AND statusCategory != Done ORDER BY updated ASC
```

Unfinished work nobody has touched since last year. A good list to review before the new planning cycle. Run on Jira Cloud on 2026-11-29.

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

## Pitfalls

- An offset with no unit counts years. `startOfYear("+1")` is the start of next year, so `created > 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() < created` fails 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().

## Related

- [startOfMonth()](https://goingstellar.ro/reference/jql/startofmonth/)
- [startOfWeek()](https://goingstellar.ro/reference/jql/startofweek/)
- [endOfYear()](https://goingstellar.ro/reference/jql/endofyear/)
- [created](https://goingstellar.ro/reference/jql/created-field/)
- [resolved](https://goingstellar.ro/reference/jql/resolved-field/)
- [updated](https://goingstellar.ro/reference/jql/updated-field/)

## Sources

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

