As a software team lead, I'd like to gather some useful statistics from JIRA to improve the team's performance. One of those statistics is the number of resolved and reopened issues.
We have set up our workflow to react on triggers from Bitbucket:
"open" -> "in progress" when a branch is created
"in progress" -> "in review" when a pull request is created
"in review" -> "resolved" when the pull request is merged (by the developer)
This means that it's not the assignee (developer) that is actually doing the state changes, as the state is being transitioned automatically.
A query to find the issues being "resolved" by a developer is quite simple:
status changed FROM "in review" TO "resolved" BY "<developer>"
But this doesn't produce any results, because of the automatic state transitions.
So what I'm looking for, is a query that finds issues being "resolved" *while* the assignee is "<developer>". Pseudo-query:
status changed FROM "in review" TO "resolved" WHILE assignee = "<developer>"
Obviously, the "WHILE" operation is not supported, so this doesn't work.
Is there an alternative way to query the issues I'm looking for?
Note that simply quering the current assignee is not correct, as this may have changed since the issue was resolved.
Thanks!