The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
  • Community
  • Q&A
  • Jira
  • Questions
  • How to sort by Sprint ASC by first non-completed sprint (if any) or last completed sprint (if all co

How to sort by Sprint ASC by first non-completed sprint (if any) or last completed sprint (if all co

barnabas_makkay
January 8, 2026

I'm having an issue in JQL where I'd like my filtered results to be sorted by Sprint. Some issues got carried over from previous sprints and have completed sprints on them. Sorting by Sprint ASC seems to take into account previous completed sprints as well, which makes my sorting not work. I believe that this is not how it's meant to work as in many views the completed sprints are tucked away under a +N button. For tracking it might be good to keep previous sprints perhaps, but more importantly when sorting I need a way to sort by the first active/upcoming sprint or last completed sprint. 

How could I specify this in JQL?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Marc -Devoteam-
Community Champion
January 8, 2026

Hi @barnabas_makkay 

Welcome to the community.

This is currently not possible, see this Bug; JRACLOUD-81425 

barnabas_makkay
January 8, 2026

Cheers. 

Like • Marc -Devoteam- likes this
0 votes
Stephen_Lugton
Community Champion
January 8, 2026

Hi @barnabas_makkay 

As @Marc -Devoteam- says this is not currently possible, however there are workarounds that you could use with future work items using a custom field and automation.

Firstly create a short text field 'YourSprintFieldName' e.g. 'Parent Sprint' or similar. (I only used this name as we have an existing field with that name)

Next create an automation, e.g.:

image.png

Going forwards any sprint changes will be reflected in this field and you can sort on this field.

 

In addition, you could add the following to your JQL to only show work items in the current or future sprints:

Sprint in (openSprints(), futureSprints())

or for completed sprints only:

Sprint in (closedSprints())

barnabas_makkay
January 8, 2026

Thanks, I'll look into it. 

Like • Marc -Devoteam- likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events