You need a plugin to do this either scriptrunner or JQL Search Extensions for Jira & reports
I have JQL Search Extensions for Jira & reports plugin and using it since long time., its available for both server and cloud
In your case
This query will return all sub tasks of issue type epic , you can change the issue type as per your need.
issue in subTaskOf("issuetype=epic")
Thank you for your question.
I can confirm that the Enhanced Search for Jira Cloud plugin contains the subtasksOf() search function that you can use to query subtasks related to an issue.
The documentation page located here explains how this works in more detail and may be useful to help you to achieve your requirement.
If this response has answered your question can you please mark it as accepted so that other users can see it is correct when searching for similar answers.
For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events