How to find issues in backlog using JQL with JIRA Agile?

Thomas Ehardt
Contributor
August 28, 2013

I just upgraded from Greenhopper to JIRA Agile.

How does one search for issues in the backlog?

9 answers

1 accepted

16 votes
Answer accepted
Thomas Ehardt
Contributor
August 28, 2013

It looks like this is how you would do it (equivalent to backlog view in planning board):

project = *project_name* AND issuetype in (Task, Bug, Improvement, "New Feature", Enhancement) AND sprint is EMPTY AND resolution = Unresolved and status != Closed

26 votes
Kristofor Carle
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 8, 2015

I discovered that Sprint = Empty is not enough if you have open issues that were once part of a previous sprint. Instead I ended up using the suggestion from this thread https://answers.atlassian.com/questions/142125

issuetype != Epic AND resolution = Unresolved AND  (Sprint = EMPTY OR Sprint not in (openSprints(), futureSprints()))
Meetu February 6, 2020

thanks a ton it resolved my query too!

Roberto T August 25, 2020

Very well observed

16 votes
Deleted user April 15, 2019

Any Idea on how to do this with for projects without sprints?

Jane Ansara
Contributor
August 28, 2020

i need this too

Like # people like this
2 votes
F_ Wolf
Contributor
July 25, 2020

Seems as if all of the suggestions are missing the "status != Resolved". So it basically should look like this:

project = <Project name> AND issuetype not in subtaskIssueTypes() AND issuetype != Epic AND resolution = Unresolved AND (Sprint = EMPTY OR Sprint not in (openSprints(), futureSprints())) AND status != Resolved
2 votes
Cristianne Bastos
Contributor
July 9, 2020

Don't know why Atlassian let us struggle with such a thing. This should be a default filter.

After many trials, I got this that finally returned the same amount of backlog items:

project = <Project name> AND issuetype not in subtaskIssueTypes() AND issuetype != Epic AND resolution = Unresolved AND (Sprint = EMPTY OR Sprint not in (openSprints(), futureSprints()))

Drew Lustro
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!
April 19, 2021

So ridiculous. Thank you.

Like David likes this
Scott Windus
Contributor
June 28, 2021

Wow, so complicated for my non-coder brain. Thank you so much for working this out and sharing it.

0 votes
Bart Molenaar
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 21, 2019

Had this annoying thing that when retrieving all issues from a sprint the amount was hardly ever equal to the amount shown in the backlog right to the sprint title.
Found often that issues where missing despite the fact that the retrieved number was in most cases higher.
However with this query it matches always the amount and same issues shown in the backlog sprints.

sprint=<sprint number> and issuetype not in subtaskIssueTypes() AND type != Epic  

 

0 votes
Alejandro Sanchez March 13, 2019

Worked like a charm, Thanks!

0 votes
Sandy Greenberg
Contributor
October 19, 2017

Brilliant! Worked for me too.  Wish I hadn't spent a morning on it before Googling it though....  

0 votes
Justin Hoffman
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!
February 2, 2016

This worked for me. Thanks, everyone. 

Suggest an answer

Log in or Sign up to answer