We would like to calculate how long it takes to close an issue. One approach would be to subtract the resolution date from the created date. The problem with this approach is that an issue may wait in "backlog" for weeks before it is actually started.
Is there any way to access when an issue entered the "Work In Progress" state or any other status for that matter?
We are writing data extraction jobs that send JQL queries and retrieve JSON back. We are willing to send other queries to extract other data that would allow us to calculate the actual time spent on the issues from the first query.
For example, for all issues closed in the last 7 days, we want to calculate how much time was spent on those cards. For us, that would be the time it entered WIP to the time it was resolved.
How can we calculate the time an issue was worked to resolution?