Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


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

Pulling past 4 sprints data from Jira automatically

I am looking to pull a report from Jira that shows the past 4 sprints completed.  

I know how to do this manually, and select these 4 sprints, but I'm wondering if there is a way (probably using JQL) to have the report pull the last 4 sprints completed automatically so that my report in Confluence always shows the past 4 sprints without me constantly updating it after every sprint.

1 answer

0 votes

Hi @BJ Thompson 

Not natively, the native dynamic function is closedSprints() - which allows you to see Issues which were in previous sprints, but with no timeframe:

sprint in closedSprints()

You could use a date function to limit this to a specific timeframe? For example, if each of your sprints are 2 weeks long, you could use:

sprint in closedSprints() and resolved >= -8w

^ This then shows issues which have been in a sprint, and have been closed within the same timeframe. It doesn't completely meet your need though, as this only helps with "done" issues, not issues which might still be open and moving between sprints.

There is a feature request for a new JQL function - lastSprint() - which might be of interest, you can vote for/watch it here: JSWCLOUD-12432 


The other alternative is to get an App which can provide more advanced JQL functions. 

You could check out Apps such as...

...which have additional functions, such as previousSprint, and see if this meets your need! Or look for another JQL extender App on the Marketplace


Let us know your thoughts!


Suggest an answer

Log in or Sign up to answer

Atlassian Community Events