JQL function
endOfDay() in JQL: syntax and examples
endOfDay() stands for the end of the current day. It is the usual upper bound for "due today or earlier" queries. An offset such as "+1" moves it to tomorrow or further.
Syntax
endOfDay()
endOfDay("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 days, so "+1" is the same as "+1d". 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 <= endOfDay() AND statusCategory != Done ORDER BY duedate ASCEverything due today or already late and still open, most overdue first. This is the list to read at the start of the day.
Run on Jira Cloud on .
duedate = endOfDay("+1")Work due tomorrow, a heads-up list for the afternoon.
Run on Jira Cloud on .
project = WEB AND duedate >= startOfDay() AND duedate <= endOfDay("+3") ORDER BY duedate ASCThe next three days of deadlines in one project. Combined with startOfDay() so that late items do not mix in.
Run on Jira Cloud on .
duedate <= endOfDay() AND assignee is EMPTY AND statusCategory != DoneDue work that nobody owns. Each result needs an assignee today.
Run on Jira Cloud on .
duedate < endOfDay("+1") AND duedate >= startOfDay() AND statusCategory != DoneDue today only, built with an exclusive upper bound at the end of tomorrow.
Run on Jira Cloud on .
Pitfalls
- The docs give
due < endOfDay()as "due by the end of today". It leaves out work due today, because a due date has no time.duedate <= endOfDay()includes it, andduedate = endOfDay()matches only today (checked on Jira Cloud, November 2026). - On created or updated, which do have a time,
< endOfDay()is fine. The difference only shows on date-only fields. - A bad offset is rejected with a clear message:
endOfDay("+1x")gives "Duration for function 'endOfDay' should have the format (+/-)n(yMwdm), e.g -1M for 1 month earlier." - The result depends on the time zone of whoever runs the search, so a shared filter near midnight can differ between colleagues.
Ready-made queries
Questions and answers
Which JQL finds work items due today?
Use duedate = endOfDay(), or duedate >= startOfDay() AND duedate <= endOfDay(). Both forms match the same work.