...
issue in parentsOfIssuesInQueryRecursive("project='ACME' and type=Epic")
finds all parents of epics in project ACME, and parents of parents, and so on. Parents of epics are usually called Initiative.issue in parentsOfIssuesInQueryparentsOfIssuesInQueryRecursive("assignee=currentUser() and issueType in subtaskIssueTypes()", 2)
finds parents of my subtasks and epics of the parents, skips anything above epics.
...