Parent in(storyid1,storyid2...) can be used for getting all subtasks that were part of a story.
For our projects, we need the JQL to fetch all subtasks that are part of an Epic.
Can you please let us know, if there is any JQL to fetch all the subtasks that were part of a EPIC