I would like to get below details in JIRA db with SQL queries
Issues under Epic
Issues under Initiative
Stories under Epics
sub-tasks under Issues.
I looked into previous discussions on these, but there is some confusion like some people used issuetype, some used issuelinktype and some used customfield. Can anyone please point me to the right direction to get above details