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.
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)
Thank you so much, @Sanjog Sigdel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kindly Accept the answer so that people can take a reference for future.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It doesn't work for me too. When I add the sprint condition it does not show anything.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.