Unfortunately, there is no native function available in JIRA Cloud to do this. I haven't been able to find a Cloud add-on that can help. Maybe someone else in the community will be able to suggest something, better but...
..a possible workaround is JQL search ordered by sub-tasks, so that issues with no sub-tasks will show first in the results:
issuetype = Task ORDER BY subtasks DESC
Add the "Sub-tasks" column to your filter results so you can see which have none:
I found a couple of suggestions in Atlassian's public issue tracker that could be worth watching/voting on:
Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs