Hi Community!
I am building a query in the JIRA DB to get the Epic Issuenum for an issuetype in the DB.
I need help getting the Epic issuenum that is related to the particular issue.

SELECT * FROM jiraissue ji
left join customfieldvalue cfv on (ji.id = cfv.ISSUE)and cfv.CUSTOMFIELD = 10332 -- Experty
LEFT join customfieldoption cfo ON cfo.id = cfv.STRINGVALUE
WHERE ji.issuetype = 10300
ji.issuetype = 10300 are issues "TaskDEV" in the company.
Current Query works well to get me issues related to issuetype 10300, but I need to get the Epic that is related to this issue as well, specifically the issuenum of the Epic.
Any help is much appreciated!
Thank you very much!