You can get time data by Parent using the Pivot Table function. You just need to do such the following steps:
Open the Time in Status for Jira Cloud app.
Select a Pivot Table view.
...
Then click the Fields button.
...
In the Field menu, you can customize data presentation by setting your custom fields for Rows, Columns, Report Filters.
To get the Epic time in the issue field, drag and drop such fields:
Summary field → Rows,
Parent field→ Rows,
Key field → Rows,
Status field → Columns
Sum of Time field→ Values
...