Forums

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

JQL for duedate not in current month?

Deleted user July 27, 2022

I'm trying to create a filter to show issues in the sprint sprint which have a due date that IS NOT in the current month.

I have a query that works to show all the issues in the sprint which have a due date that IS IN the current month:

project = "Projects in V1" AND issuetype = Deliverable AND Sprint = 522 AND (duedate >= startOfMonth() AND duedate <= endOfMonth()) order by created DESC

But when I do 

project = "Projects in V1" AND issuetype = Deliverable AND Sprint = 522 AND (duedate != startOfMonth() AND duedate != endOfMonth()) order by created DESC

I get results for all the issues in the sprint that are due for any date that is not the first or the last day of the month.

 

Is there a way to filter the issues in the sprint to show only those with a due date that is not in the current month (e.g. for July 2022, anything that is not due in July 2022 but due in different months)?

1 answer

1 accepted

0 votes
Answer accepted
Mohamed Benziane
Community Champion
July 27, 2022

Hi,

You can use something like this

project = "Projects in V1" AND issuetype = Deliverable AND Sprint = 522 AND NOT (duedate > startOfMonth() AND duedate <= endOfMonth()) ORDER BY key DESC
Greg Fichtner
Contributor
July 27, 2022

Or maybe

project = "Projects in V1" AND issuetype = Deliverable AND Sprint = 522 AND (duedate < startOfMonth() OR duedate > endOfMonth()) ORDER BY key DESC
Like # people like this
Deleted user July 29, 2022

Thanks so much, the AND NOT worked perfectly!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events