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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

JQL for stale issues since their creation

Hello all,

  I'm seeking assistance in doing the following:

1. Querying JIRA for issues which hadn't have their status changed for say 5 days since their creation ?

2. Only retrieving the total number of issues, found in 1st query on a per-day basis  ?

3. Retrieving the series of all such totals from the 2nd query day-by-day ?

My goal is really something similar to the Cumulative Flow Diagram, but with the criteria of only matching stale entries.



1 answer

0 votes
Jack Community Leader Nov 09, 2020 • edited


actually try this JQL:

project = abc and not status changed after startOfDay(-5d) and statusCategory != done


I wonder if relying on UpdatedDate query function would work for you!?

project = abc and updatedDate <= startofday(-5d) and statuscategory!= Done

then you can save the filter and set up a daily subscription 

note: updateddate isn’t specific to Status being updated. If someone simply changes a field or comments it triggers. You might also consider statusCategoryChangedDate function but it is perfect either as you could have multiple “In Progress” statuses for example. 

Thanks for you answer. My wish is to base all the queries on the date of creation, so let's say the query would return the same number irrespective when had it been run. With relative dates, (if I understand their applicability correctly), the "baseline" date is the "now" - the time when the query was run.

Let's say I want to see how many stale issues were there daily in a month of May (although it's November today) - I end up depending on non-relative dates. 

I guess what I'm looking for is something like this:

Project=abc and createdDate=<baseline_date> and (not status changed or status changed after "5d since <baseline>")

Suggest an answer

Log in or Sign up to answer

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