Hi, Jira community 👋🏼
I am not able to view all subtasks for a team-managed project when my JQL is
issuetype in (Subtask, sub-task)
How can I make sure all the subtasks are visible?
Hello @Shilpa Sikotra Taylor
issuetype in (subTaskIssueTypes())
If that doesn't work, please tell us more about the sub-task issues that you are not seeing.
Are you able to view the details of those missing sub-tasks?
Do other team members get the same results (missing issues) with the same filter?
Is there more than one sprint with the same name in your Jira instance?
Jira does not require sprint names to be unique. Are you sure that the sprint with ID=81 is the sprint that you are viewing when you say "than I can see on the sprint"? Where are you viewing that sprint?
If you are viewing your sprint in a Board (in the columns view) are you sure you are viewing only one Sprint and not multiple sprints?
Are you sure that all the items you see when you are viewing the sprint a of the issueType "sub-task"?
Thought I'd answer your questions in bullet points:
Hello @Shilpa Sikotra Taylor
Hm, this is very interesting.
In my environment I have a Team Managed project with a scrum board where I have issues that have subtasks.
In the Advanced Issue Search when I try to run a filter for just
...the results I get don't include any of the sub-tasks that are attached to issues in the sprint.
If I execute a search for
...then I get the sub-tasks and I can see the sprint in the Sprint field in the details of the sub-task.
I found that Atlassian has a bug about searches by Sprint for Team Managed project not returning sub-tasks that inherit the sprint value from their parent issues.
It's not strictly a "bug" - sub-tasks are not sprint items and they don't have a sprint field by design. It's actually working as intended!
However, it's not intuitive, it's not helpful and it's not good for us humans.
If you ever run into a server install I used to be an admin of, you're likely to find a handful of scripted fields that echo sprint, parent, and epic through the hierarchy. (So that you can use things like "Epic-all = <epic's id>" and get the Epic, Issues and Sub-tasks in one go)
What I find confusing is that when I execute a search, display the results as a list, and add the Sprint field to the columns, then it shows the sprint value for the Sub-tasks.
Additionally if I execute a search for sub-tasks in a Company Managed project and add criteria for the Sprint, then it does return the sub-tasks.
So the searching for sub-tasks "in" a sprint works for Company Managed projects but not for Team Managed projects.
Yep, that's a weird quirk of the way it's been implemented (and it's a recent implementation on Cloud). In some places, the sprint field comes out on sub-tasks - there's a line of code that's doing something like issue.getParentObject().getSprint(), but it's not universal, and it's not in JQL!