You might want to use measures “Hours spent” and “Issues with hours spent” to see logged hours and the issue count on which those hours are logged (see measure description in the documentation: Jira Core measures and dimensions).
Then use the dimension “Issue Type” on report pages to filter only bugs and the dimension “Team” or “Logged by Team” (if you have Tempo) to group data by teams.
If you retrieve worklogs from Tempo Timesheets there are more details on available dimensions and measures: Tempo.