Going Stellar

Home/JQL reference

JQL function

endOfMonth() in JQL: syntax and examples

endOfMonth() stands for the end of the current month. Use it for month-close reviews and "due this month" filters. Offsets move it by months, or by days when you write a unit.

Syntax

endOfMonth()
endOfMonth("inc")

Arguments

ArgumentWhat it doesOptional
incOptional offset in the form (+/-)nn(y|M|w|d|h|m). With no unit it counts months, so "+1" is the same as "+1M". 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 >= startOfMonth() AND duedate <= endOfMonth() ORDER BY duedate ASC

Every deadline in the current month, in date order. The base for a month-close review.

Run on Jira Cloud on .

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

Open work that still has to land before the month ends.

Run on Jira Cloud on .

duedate <= endOfMonth("+1") AND duedate > endOfMonth() ORDER BY duedate ASC

Next month's deadlines only. Useful in a planning meeting at month end.

Run on Jira Cloud on .

duedate <= endOfMonth("+15d") AND statusCategory != Done

Open work due by mid-month after this one. The unit "d" is added to the month end, so it reaches 15 days into next month.

Run on Jira Cloud on .

duedate = endOfMonth()

Work due on the last day of the month, for a final-day checklist.

Run on Jira Cloud on .

Pitfalls

  • endOfMonth("+1") is the end of next month, not 30 days from now. The offset unit decides: "+1" and "+1M" are a month, "+1d" is a day.
  • The doc example due < endOfMonth() drops work due on the last date, because a due date has no time. Use <= for "by the end of the month" (checked on Jira Cloud, November 2026).
  • Short months are handled for you. You do not need to write 28, 30 or 31, which is the whole reason to use the function instead of a typed date in a saved filter.

Questions and answers

Which JQL gives work items due this month?

Use duedate >= startOfMonth() AND duedate <= endOfMonth(). Add statusCategory != Done to keep only open work.

Sources

  1. JQL functions (Atlassian Support, Jira Cloud)

Markdown version · All JQL pages