As per the docs you should be able to get issue.getParent() to get the parent object. From this object you should be able to get the data from parent and add to the email content.
And this link also may be helpful. Do appropriate condition checks so that the template works for non sub-tasks items too.
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
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot