Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.

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

How can I make a query to get all the tickets created during the last 3 months?

Alvaro Hernandez February 4, 2025

Hello!

I'm trying to make a query with JQL to get all the tickets created and updated during the last 3 months but with the query I'm showing here I can only get the tickets created during the month of November 2024.

 

Can you show me how to do it? What is wrong?

project = "HelpDesk” AND (created >= startOfMonth(-3M) and created <= endOfMonth(-3M)) AND updated <= endOfMonth(-3M) order by created ASC

2 answers

1 accepted

3 votes
Answer accepted
Gerusa Lobo _e-Core_
Atlassian Partner
February 4, 2025

Hello @Alvaro Hernandez

 

The jql could be:

project = "HelpDesk” AND (created >= startOfMonth(-3) and created <= endOfMonth(-1)) AND (updated >= startOfMonth(-3) and updated <= endOfMonth(-1))order by created ASC

 

For issues of the created of the last 3 months from december to february, you could use:

created >= startOfMonth(-2) and created <= endOfMonth()

 

If you want the 3 last full months, from november to january, maybe you should use:

created >= startOfMonth(-3) and created <= endOfMonth(-1)

 

If you want only issues created and updated use 'and', and if you want issues created or updated in this period, use 'or'

 

I hope help you.

Alvaro Hernandez February 4, 2025

Thank you @Gerusa Lobo _e-Core_ !

Your advise are very usefull to me

1 vote
Rebekka Heilmann _viadee_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 4, 2025

Hi @Alvaro Hernandez 

can you specify what timeframe you want to cover?

Do you want to include all issues that are 3 months old or newer to the day? 04.11.2024 - 04.02.2025
Or only the issues that have been created in the previous three months? 01.11.2024-31.01.2025

Or something else entirely? ;)

Alvaro Hernandez February 4, 2025

Hi @Rebekka Heilmann _viadee_ 

I need to get all tickets from November 2024 to January 2025.

Rebekka Heilmann _viadee_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 4, 2025

In that case @Gerusa Lobo _e-Core_ gave you the answer already :) 

Suggest an answer

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

Atlassian Community Events