The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new 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 Champion
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

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events