Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Open issues or closed in the current quarter

Hello!

I want to write a filter that will shows issues that are not closed or done (Open, In progress and etc.) or that we resolved in the current quarter of the year. 
I do not want to use static dates because I do not want to update filter every quarter. 
What are my options? 

For now I use something this but this is not correct. 

project = KMD AND issueType = Story AND
(status not in (Closed, Done)
OR (status in (Closed, Done) AND updated > startOfMonth(-2) )) 

Example: 

Now is 2nd quarter and it is 1st of May (2nd month of 2nd quarter)
So I want to see features closed from (1st of April to now) 

Task is in progress -> show it
Task is closed and it was closed 15 of April -> show
Task is closed and it was closed 29 of March -> hide

Thank you!

1 answer

Hello!

I dont know of a way to search for the current quarter in JQL.

However, this query will return all issues created in the first quarter of the current year. Maybe it helps you, even though its not really what you were looking for:

created >= startOfYear() AND created <= startOfYear(3M)

Thank you very much! 
I thought about something crazy like 

project = KMD AND issueType = Story AND (now() > StartOfYear() and now() < StartOfYear(3M) AND resolved >= StartOfYear() AND resolved < StartOfYear(3M)))

 

but I cannot use now() as a field. And as far as I understand there is nothing like sysdate or current_date

Yeah im afraid you cant do that afaik.

You would have to make 4 filters is how i see it. One for each quarter.

project = KMD AND issueType = Story AND (resolved >= StartOfYear() AND resolved <= StartOfYear(3M)) 


project = KMD AND issueType = Story AND (resolved > StartOfYear(3M) AND resolved <= StartOfYear(6M))

and so on...

Like # people like this

Oh thank you!
I think this will suit the team :) Great idea just to separate and create several filters. 

I'm glad i could help!

Thanks for the feedback :)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

535 views 1 10
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you