Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to query issues in a specific closed sprint?

I need to build a query to filter issues closed in a specific sprint. 
Using the sprint value & issue type/ status - brings all the issues that are closed in future sprints also.

2 answers

1 accepted

0 votes
Answer accepted

Hi @Ramesh ,

Thanks for posting and welcome to the community. 

I think you are using JQL while you refer query.  Are you looking for issues closed in a sprint and also  specific project or any issues closed in that previous closed sprint?

Please confirm.

hi @Suvradip Paul  Sorry for the late response.
yes, you are right JQL am referring to.

"issues closed in a previously closed sprint for a specific project"
something equivalent of the sprint report seen under the reports.


Hi @Ramesh ,

Thanks for your response.

Could you please try something like this?

Project = XXX and Sprint = YYY and status in (Closed, Done)

YYY - Here refers to the Previous Sprint details.  In the above example the last status can be Closed and Done. If it's different, please update your query accordingly.

Hi @Suvradip Paul 

sorry this one will get me the issues that are completed in future sprint also. some reason JQL ignore the sprint value and yields all the issues in the project that matches to the given status.

Hi @Ramesh ,

I think no, If I slightly modify the query and specify the Closed Sprints details here it should give me the issues only done as part of the Closed Sprint but not any future sprints.

The below would bring all the issues in that project in closed sprints.

Project = XXX and Sprint in (closedSprints()) and status in (Closed, Done)

Like Ramesh likes this

Hi @Suvradip Paul 

this will help, but I need this for a specific sprint not all closed sprint.
Project = XXX and Sprint in (closedSprints()) and status in (Closed, Done)

Objective is to get a confluence link for each sprint to show the number of issues against various status.

Hi @Ramesh ,

I have an alternative thought.

Could you please look into this Knowledgebase Article to bring Jira Reports to Confluence - and try to bring Sprint Report in confluence similarly?

Please check and let me know if this helps or in case you think otherwise.

Like Ramesh likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

168 views 1 3
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