Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JIRA JQL - Find issues with more than X days in Status

Tags:

jira

jql

I want to show all issues where it has been in a current status for more than X days - is this possible?

We have this workflow: Registered => Analyze => Planned ... etc. The ticket can be in Registered for 3 weeks and it can be 3 weeks in Analyze without any problems.

Currently I am using this JQL to show tickets that have been more than 3 weeks in Analyze:

project = MyProject AND status = Analyze AND created <= -6w

This is wrong due to so many reasons and it does not look at the time in the current transition state - nor does it take in to account that it can be pushed back from Planned to Analyze and then allow a new 3 weeks analyze period.

Is the above possible to filter in JIRA? I don't have the possibility to use the JIRA REST interface - only the builtin JQL.

I am running with JIRA version 6.4.5.

like image 449
Beauvais Avatar asked Oct 22 '15 11:10

Beauvais


2 Answers

You should be able to get there using the JQL CHANGED operator. Its documentation is available here.

Your query would look something like this:

project = MyProject AND status = Analyze AND status CHANGED BEFORE -3w
like image 128
GlennV Avatar answered Sep 27 '22 22:09

GlennV


 project = MyProject AND status = Analyze and not status changed during (-xd,now()) 
like image 20
user1017344 Avatar answered Sep 27 '22 22:09

user1017344