Total time spent (Different Spaces)

Good afternoon, all. This may be a very easy question, but I’ve run out of ideas. I would be grateful if you could help me figure it out.
There are several spaces, someone wrote off hours through Tempo plugin in the epic itself (space 1), someone wrote off in tasks, bugs, subtasks and so on already in another space (space 5)
How do I map the project to include all the hours tracked in space 1 and space 5?