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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,556,519
Community Members
 
Community Events
184
Community Groups

JQL Query Help

Is there a way to write a JQL statement that can limit a filter by status and multiple dates?

 

Example:

Created date for closed status for  up to 1 year

Created Date for open, in progress, and reopened status all time?

 

1 answer

0 votes
Walter Buggenhout _ACA IT_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 09, 2023

Hi @Bobby Moyini and welcome to the Community,

JQL always retrieves issues. So you can not search for created dates. But as I am not entirely sure what you are trying to do here, you can definitely do stuff like this:

Status = closed AND created >= -365d

Which would retrieve all issues which were created 365 days ago or later and now have status Closed.

The following statement would retrieve all issues that are open, in progress or reopened:

Status in (Open, Reopened, "In Progress")

But you would need to go through all the issues it returns in order to find the created dates for all these issues

Hope this helps!

To clarify is it possible to see all jiras that are closed with a creation date of up to a year in addition to all open , reopened, and in progress jiras created for all time?

 

I'm essentially trying to limit the amount of closed items coming in the search to a year , but also display all open , reopened, and in progress jiras created for all time.

Walter Buggenhout _ACA IT_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 09, 2023

Yes, @Bobby Moyini. By combining both queries I suggested, you should be more or less there. I would probably use resolution instead of status to build the query, that would look somewhat like this:

Resolution = Unresolved OR (Resolution != Unresolved AND created >= -365d) 
Like Bobby Moyini likes this

Suggest an answer

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

Atlassian Community Events