With this config you can create a hierarchy like this:
Epic rule
First create a rule for your epics:
Story under epic rule
Then you should create a rule for all stories that will be created under an epic:
SubTask rule
The last thing that needs to be done is a rule for the SubTasks that are going to be under the story:
: