The function returns an ISSUE LIST containing current issue's epic, in case current issue is directly under an epic (e.g., a Story). If current issue is a sub-task, then the epic of its parent issue is returned. If current issue is an epic itself, then current issue is returned.
epic() #Output: Issue list
The function returns the ISSUE LIST of epic issues under where those issues in argument issues are. If some of those issues are sub-tasks, then the epic of their parent is returned. Duplicated issues in argument issues are discarded.
Output can contain duplicated issues.
epic(issue list issues) #Output: Issue list
The function returns the ISSUE LIST of epics under where those issues with keys in issue_keys are. If some of those issues are sub-tasks, the epic of their parent is returned.
Argument issue_keys is a comma-separated list of issue keys. Duplicated issue keys in argument issue_keys are discarded. Output can contain duplicated issues.
epic(text issue_keys) #Output: Issue list