Forums

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

JQL query for stories moved and stories stuck

Ayan.Basu
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!
August 10, 2023

Hi Team - For our Jira board we have more than 250 stories which will start from Requirement till Deployment in 8 phases as per our workflow. I need help to create a JQL query to filter out stories moved in last 7 days and stories stuck for more than 30 days. 

Any suggestion what the query should be helpful !

 

Thank You ,

 

Ayaan 

1 answer

0 votes
Sanjog Sigdel
Community Champion
August 11, 2023

Hi @Ayan.Basu ,


You can use following query to fulfil your requirements:-

project = "Project Name" AND issuetype in standardissuetypes() AND status changed to "In Progress" AFTER -7d

This filter alone gives you tickets that were changed to In Progress in last seven days. You can add your required status.


project = "Project Name" AND issuetype in standardissuetypes() AND status = "In Progress" AND updatedDate <= -30d

This filter checks a ticket stuck in In Progress state for thirty days. If you want any Paused or Blocked status, replace it with In Progress. and if you want to combinely run this query do the following:-

(project = "Project Name" AND issuetype in standardissuetypes() AND status changed to "In Progress" AFTER -7dOR (project = "Project Name" AND issuetype in standardissuetypes() AND status = "In Progress" AND updatedDate <= -30d)

 

The OR statements lists the tickets which meets any one requirement.

Suggest an answer

Log in or Sign up to answer