# endOfYear() in JQL: syntax and examples

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

endOfYear() stands for the last moment of the current year. Use it as an upper bound on due dates for a year-end deadline check, or with an offset to look into the first months of next year.

## Syntax

```
endOfYear()
endOfYear("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

```
duedate <= endOfYear() AND statusCategory != Done ORDER BY duedate ASC
```

All unfinished work that has to be done by the end of the year, soonest deadline first. This list includes work that is already late. Run on Jira Cloud on 2026-11-29.

```
duedate >= startOfDay() AND duedate <= endOfYear() AND statusCategory != Done ORDER BY duedate ASC
```

Only the deadlines still ahead of you this year. Starting at today removes the overdue items from the list above. Run on Jira Cloud on 2026-11-29.

```
duedate > endOfYear() AND duedate <= endOfYear("+3M")
```

Work due in the first three months of next year. Run it in December to see what the new year starts with. Run on Jira Cloud on 2026-11-29.

```
project = MOB AND duedate >= startOfYear() AND duedate <= endOfYear()
```

Every deadline of the MOB project in the current calendar year, for a roadmap check. Run on Jira Cloud on 2026-11-29.

```
due < endOfYear()
```

The form used in the Atlassian docs, with due as an alias of duedate. It finds work due before the year ends. Run on Jira Cloud on 2026-11-29.

```
duedate < endOfYear("-1M")
```

Due before December starts, counted as one month back from the end of the year. Useful when a freeze begins a month before year end. Run on Jira Cloud on 2026-11-29.

## Pitfalls

- An offset with no unit counts years. `endOfYear("+1")` is the end of next year, not one more month or day, and `duedate < endOfYear("+1")` covers two years of deadlines.
- `duedate = startOfDay()` or `startOfYear()` when you only want the year ahead.
- The function must be on the right side. `endOfYear() > duedate` fails with "Expecting operator but got '('" (checked on Jira Cloud, November 2026).
- The unit letter is case sensitive: `"-1M"` is a month, `"-1m"` a minute, so a wrong letter case silently changes the unit.

## Questions and answers

### How do I find work due before the end of the year in Jira?

Use duedate = startOfDay() to leave out work that is already late.

## Related

- [startOfYear()](https://goingstellar.ro/reference/jql/startofyear/)
- [endOfMonth()](https://goingstellar.ro/reference/jql/endofmonth/)
- [endOfWeek()](https://goingstellar.ro/reference/jql/endofweek/)
- [duedate](https://goingstellar.ro/reference/jql/duedate-field/)
- [now()](https://goingstellar.ro/reference/jql/now/)
- [startOfDay()](https://goingstellar.ro/reference/jql/startofday/)

## 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/)

