Forums

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

JQL for stale issues since their creation

Vytautas B.
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 9, 2020

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.

thanks,

Vytautas

1 answer

0 votes
Jack Brickey
Community Champion
November 9, 2020

Edited...

actually try this JQL:

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

xxxxxxxx

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. 

Vytautas B.
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 9, 2020

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