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
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()))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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()))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So ridiculous. Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow, so complicated for my non-coder brain. Thank you so much for working this out and sharing it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Brilliant! Worked for me too. Wish I hadn't spent a morning on it before Googling it though....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked for me. Thanks, everyone.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.