You can achieve this using a plugin like script runner or JQL Search Extensions for Jira & reports
I am using JQL Search Extensions for Jira & reports and following query will fulfill this need if you use the same plugin.
It will return all issues which at least have one sub task
issue in subtaskCountGreaterThan(1)
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