How to filter subtasks by sprint

Mikala Hernandez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 25, 2023

I need to pull a report  that shows all subtasks filtered by sprint number. For example, I want to see:

- All subtasks that were completed in Sprint 1

- All subtasks that exist in the current active sprint

It's not possible to do this using Filters -> View all Issues -> Search, because subtasks are not assigned to sprints, only their parent issues are (even though subtasks do show a field identifying which sprint they belong to).

One possible work-around I came up with was to create a custom field (Sprint - Reporting) on Issues and subtasks, that automatically copies the value from the Sprint field. That way, I would be able to filter by that field. However, I am not able to figure out how to copy the value from the "Sprint" field to the custom field "Sprint - Reporting" using the Automation rules.

Is there any kind of work around that would provide a solution to my problem?

I am using Team-managed project.

 

 

1 answer

1 accepted

0 votes
Answer accepted
Sanjog Sigdel
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 25, 2023

Hello @Mikala Hernandez 

Welcome to the community.

You can filter your subtasks by sprint using a simple JQL:-

issuetype in subtaskissuetype() and sprint in opensprints()

 

This will list all subtasks types like sub-task, story-defect, test-case under open sprints. If you are running multiple sprints you will get tickets from different sprints. 

If you want from a particular sprint you can use this query instead:-

issuetype in subtaskissuetype() and sprint in(544,555)

Where 544, 555 are the sprint ids which you get after typing your sprint name inside parenthesis "Sprint 64".

 

Further more if you are looking for specific issue types among the sub-task issue types you can use this query:- 

issuetype in("Sub Task", Defect, Documentation) and sprint in(544,555)

Mikala Hernandez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 14, 2023

Thank you so much, @Sanjog Sigdel

Like Sanjog Sigdel likes this
Sanjog Sigdel
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 16, 2023

@Mikala Hernandez 

Kindly Accept the answer so that people can take a reference for future.

Like Mikala Hernandez likes this
Juan Pablo Villabona
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 18, 2024

@Sanjog Sigdel Hi, found this today but unfortunately, this solution is not working for me. As soon as I filter by those two fields, all results are cleared. It only happens when having those two fields in the filter. Any idea?

Like Mohammad amin Mozaffar likes this
Anthony Bryle Poncio July 22, 2024

It's the same behavior for me; it's not going to work. I scraped through the internet already just to make it work, but I can't find any way to do it. There was a 5-year-long bug that is still running, which looks like it never got picked up.

Like Mohammad amin Mozaffar likes this
Mohammad amin Mozaffar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 3, 2024

It doesn't work for me too. When I add the sprint condition it does not show anything.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events