Dear Community Members.
I am new to Jira and looking to implement a functionality to calculate the time spent by a Team on a particular issue.
Suppose there are two teams working on the Defect.
1) A new defect is initially assigned to Team A.
2) Team A checks if the issue is related to them or else they Transfer the issue to another team B.
3) Team B works on the issue for a certain amount of time and may transfer it back to the Team A or can resolve the defect on their own depending on the findings.
I need to calculate the time spent By Team A and Team B on a certain defect.
We are not using Subtasks.
Can you please help me out.
PS: I am not looking for complete solution. A heads up will do! 
Thanks in advance,