Forums

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

JQL: How to get all issues that changed status after custom Date Field date?

Dave West
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!
May 27, 2021

We have a pretty standard process.

An issue spends time in an "In Progress" status and then moves to a "QA" status.

The issue has a custom date field called "QA Due Date" which is populated with a date picker.

How in the world do I write a JQL query filter that shows me all issues that changed status from "In Progress" to "QA" after the date specified in "QA Due Date"?

Thanks!

6 answers

1 accepted

0 votes
Answer accepted
John Funk
Community Champion
May 28, 2021

Hi Dave - Welcome to the Atlassian Community!

You probably are not going to be able to do that with JQL because you cannot compare date fields with JQL.

However, you might be able to create an Automation For Jira rule that uses the Advance Compare condition to get a list of issues emailed to you. 

0 votes
Yuyuan
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!
January 12, 2022

Hi Dave,

Have you found a solution to your problem ? I have exactly the same issue.

0 votes
Mehmet A _Bloompeak_
Atlassian Partner
June 14, 2021

Hi @Dave West ,

You can try Status Time app developed by our team. It provides reports on how much time passed in each status as well as status entry dates. For your specific case, you can run the report to show status entry dates along with your custom field "QA Due Date". Then export the report in csv format, then you can compare two dates using MS Excel and filter the ones "QA Due Date" is before status entry date.

Once you enter your working calendar into the app, it takes your working schedule into account too. That is, "Unassigned" time of an issue opened on Friday at 5 PM and assigned to a user on Monday at 9 AM, will be a few hours rather than 3 days. It has various other reports like average/sum reports(eg. average unassigned time per project). And all these are available as gadgets on the dashboard too.

Here is the online demo link, you can see it in action and try.

0 votes
Kevin Comco June 7, 2021

Do you by chance have ScriptRunner?  If so, you might be able to use 'issuefunction in (datecompare(...))' to get where you're hoping to be.

0 votes
Tinker Fadoua
Community Champion
May 30, 2021

@Dave West Not sure about a plugin that will help you achieve what you are looking for.

However I know for sure Jira out of the box doesn't have this feature.

Best,

Fadoua

0 votes
Tinker Fadoua
Community Champion
May 27, 2021

@Dave West 

Project = ABC and status = QA and QA Due Date > "enter the date here" (if it applies to all projects then no need to add project to your query.

For more about JQL check here 

Let me know how it goes.

Best,

Fadoua 

Dave West
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!
May 28, 2021

Thank you for the response but this is not quite what I am looking for. Each issue has its own QA Due Date so the date cannot be hardcoded into the query. I am looking to use the custom date field as a parameter.

So I need something like:

project = ABS and status = QA and status changed from "In Progress" to "QA" after "QA Due Date"

Unfortunately, this causes an error saying I cannot compare anything to QA Due Date

 

Does anyone know how I can fix this?

Suggest an answer

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

Atlassian Community Events