Forums

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

JQL filter for quarter in previous year

Marcel Jünge January 12, 2023

Hi,

 

is there a possibility to filter issues that were, for example, created in the second quarter of the previous year?

 

Thank you,

Best regards,

Marcel

 

 

3 answers

1 accepted

2 votes
Answer accepted
Hamza Chundrigar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 12, 2023

Hi Marcel, 

You could use the following JQL to filter out all created issues between April 1 - June 30 (2022)

created >= 2022-04-01 AND created <= 2023-06-30 order by created DESC

 

Best regards,
Hamza

Marcel Jünge January 12, 2023

Thank you for your answer. 

To Clarify: I want basically a filter that shows me the issues no matter the year.

Example: Next year i dont want to edit the filter and set the dates to 2023 and so on.

So a filter that shows me now the issues from 2022. Next year it shows me the issues from 2023 without the need to be edited manually. 

I hope you know what i mean. 

Hamza Chundrigar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 12, 2023

Thanks for clarifying. The filter query I provided used static dates so you would need to edit the filter.

But if the condition is that you would need a JQL query that always takes created issues from the last year's second quarter, then you could use:

created >= startOfYear(-9M) and created < startOfYear(-6M)

 So next year in 2024, it'll show you issues in the second quarter of 2023 (and so on.)

 

Best regards,
Hamza

Marcel Jünge January 12, 2023

That is exactly what i wanted.

Thank you very much!!!

Like Hamza Chundrigar likes this
0 votes
Ste Wright
Community Champion
January 12, 2023

Hi @Marcel Jünge 

You can do this, but it's based on either days or dates

So for example, if you mean the second calendar quarter of 2022 you could use either:

created >= startOfYear(-9M) and created < startOfYear(-6M)

OR

created >= 2022-04-01 and created < 2022-07-01

Personally, I think using static dates is easier - but the first option is more dynamic, so wouldn't need to be recreated each year.

Ste

Marcel Jünge January 12, 2023

I will use the solution from Hamza but thank you very much!

Like Ste Wright likes this
Ste Wright
Community Champion
January 12, 2023

No worries!

Using Month makes more sense. I'll modify my answer to clarify this.

Ste

0 votes
Sushant Verma
Community Champion
January 12, 2023

Hi @Marcel Jünge 

You can try :

createdDate >= 2022-04-01 and createdDate <= 2022-07-01


Regards,
Sushant Verma 

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