I need to calculate and compare time taken by Dev team and QA team. As of now i have 'Dev in progress' state then code goes to QA team to raise bugs in any issue, then ihe issue goes to 'deployment pending' state or assigned back to dev team based on no of bugs found. Is there JQL around this?