JQL function
endOfYear() in JQL: syntax and examples
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
| 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
duedate <= endOfYear() AND statusCategory != Done ORDER BY duedate ASCAll 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 .
duedate >= startOfDay() AND duedate <= endOfYear() AND statusCategory != Done ORDER BY duedate ASCOnly the deadlines still ahead of you this year. Starting at today removes the overdue items from the list above.
Run on Jira Cloud on .
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 .
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 .
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 .
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 .
Pitfalls
- An offset with no unit counts years.
endOfYear("+1")is the end of next year, not one more month or day, andduedate < endOfYear("+1")covers two years of deadlines. duedate <= endOfYear()has no lower bound, so overdue work from earlier years is part of the result. Addduedate >= startOfDay()orstartOfYear()when you only want the year ahead.- The function must be on the right side.
endOfYear() > duedatefails 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 <= endOfYear() AND statusCategory != Done. Add duedate >= startOfDay() to leave out work that is already late.