Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to create a JQL query to select issues in active and future sprints as well as Backlogged Issues

I need some assistance writing a JQL query that needs to query the issues (i.e. Bugs, Stories) in my project's Active Sprints, Future Sprints and the backlogged items. 

The issue I have encountered is getting the backlogged issues to show up in the query without have issues from closed sprints showing up. 

the query I have right now (below) shows all issues in my project from all sprints that are open or are future sprints, as well as the backlogged issues, however, it does not show any subtasks or issues in those active sprints that have been marked as completed/done. I still need those to show up so I can create a report of sprint issue subtask statuses. 

            "project = GLOB AND issuetype in (subTaskIssueTypes(), Bug, Story) AND resolution = Unresolved ORDER BY status DESC"

Any suggestions for what I need to modify to get the query to just display the issues and their subtasks from the active sprint, the future sprints, and the backlogged issue list?

3 answers

1 accepted

1 vote
Answer accepted

Hi @David_Newton 

The following query should work for you:

Project = GLOB AND sprint in (openSprints (),futureSprints()) OR project= GLOB and issuetype in (subTaskIssueTypes(), Bug, Story) AND sprint is EMPTY AND resolution = Unresolved order by created DESC

Lets try to understand:

JQL to get issues in current and future sprints: Project = GLOB AND sprint in (openSprints (),futureSprints())

JQL to get issues in Backlog: project= GLOB and issuetype in (subTaskIssueTypes(), Bug, Story) AND sprint is EMPTY AND resolution = Unresolved order by created DESC

This appears to have solved my issue. thank you very much

Like Deepanshu Natani likes this
0 votes
Jack Community Leader Jun 11, 2021

Try…

project = GLOB AND resolution = Unresolved OR Sprint in openSprints() ORDER BY status DESC

0 votes
Andy Heinzer Atlassian Team Jun 11, 2021

Backlog issue are not in a sprint always, hence we need to account for those without an sprint field value at all in addition to those issues that are in an open sprint right now.  So try something like:

project = GLOB AND issuetype in (subTaskIssueTypes(), Bug, Story) AND resolution = Unresolved AND (Sprint is EMPTY OR Sprint in openSprints()) ORDER BY status DESC

Let me know if that helps.

Andy

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

241 views 7 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you