I have been searching for the functionality or an add-on that will produce a report with the structure depicted in the below image. We have several epics that have stories and sub-tasks (standard Jira structure shown in first image).

From those epics, we need to produce a report that has the structure shown below, that lists each story with the story's sub-tasks listed below their parent. Ordering is not a problem, the issue that needs to be solved is grouping the sub-tasks with their parent. We need to specify which fields are included in the report, such as summary and status but we also need to include web links if at all possible.

Has anyone made a report like this? If so, how did you do it? What add-on did you use?
Any help would be appreciated. Thank you.