Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

JQL Query excluding first day of the month and including first day of next month

Sara Wortman
Contributor
April 19, 2023

It seems like we have a time zone issue or something because our query is including the first day of the next month and excluding the first day of this month. Is there a way to either modify the query or resolve the underlying issue?

"Target end" >= startOfMonth() AND "Target end" <= endOfMonth()

2 answers

0 votes
Josué Garcia
Contributor
April 20, 2023

This may or may not help but you can offset the amount of time between start and end of month. 

created >= startOfMonth(1d) AND created <= endOfMonth(-1d)

0 votes
Dan Breyen
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 19, 2023

Hi Sara,  based on this article, it appears that syntax should work assuming that Target Date is a date/time field.

If you can replicate the issue, I would recommend opening a ticket with Support, as it doesn't appear to be working for your field.

Advanced search reference - JQL functions | Jira Software Cloud | Atlassian Support

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events