Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

JQL WAS Status X DURING Sprint Y

Matthew Mims November 4, 2022

I'm trying to get the stories that were in status "Blocked" during a specific sprint for some historic reporting.

I know that the WAS operator is very powerful for these types of query and you can use DURING (date1, date2) however it's a real pain to have to look up the start and end dates of a sprint every time.

Is there a away to specify the sprint name and that the status WAS IN ("Blocked",...)?

To my understanding

sprint = "XYZ" AND status WAS "Blocked" 

would just return any issue that was once blocked and was once in sprint XYZ, not the intersection of these two.

This feels like a query that quite a few people would want to be using for project reporting purposes. Any ideas?

(I'm worried also that because dates and sprints don't seem to be a formal thing in jira eyes then this isn't possible - I'd be interested to understand the logic why)

 

2 answers

2 accepted

1 vote
Answer accepted
Seifallah Bellassoued
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 4, 2022

Hello @Matthew Mims

 

JQL does not allow filtering by sprint fields (at least in the standard).


But to meet your functional needs, I suggest to use agile reports, for example "Srpint Report". This report makes a "snapshot" of issues at the end of the sprint. So you can get "Blocked" issues at the end of this sprint.
You can base yourself on the following screenshot with the folling steps:

  1. Go to reports
  2. Choose "Sprint Report"
  3. Choose the Sprint

Sprint Report.png

I hope this can help you,

Regards,

Seif,

Matthew Mims November 6, 2022

Thanks, this is a good point, although not suitable for my use case as I want to be embedding this information into confluence pages, hence the JQL.

Like Seifallah Bellassoued likes this
1 vote
Answer accepted
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 4, 2022

Hi @Matthew Mims - You are correct that this isn't possible (at least not natively) and its mainly because JQL has always been 100% centered around querying issues. So, there is no option to query against a sprint and return the stories.

Your best bet is to invest in a marketplace app that provides JQL extensions. However, I know that these are quite a bit more constrained in cloud than they were in server so take that into consideration should you go this route.

Matthew Mims November 6, 2022

Thanks for the clarification.

Like Mark Segall likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Upcoming Jira Events