Hello,
I would like to compute a metric which can be defined as "median time between an issue's last IN PROGRESS status to its last DONE status".
In order to achieve this, I must know what is the last time the issue was IN PROGRESS, and the time of the last transition to DONE. Unfortunately, I can only find in the documentation how to get possibble future transitions, and not the transition history.
Do you know if it is possible to get the transition history ? If not, would you see another/better way of computing it ?
Thanks a lot !
Using the REST API, you can pass in the parameter expand=changelog and then iterate over issues.changelog.histories. The return is usually in reverse chronological order, so the first transition to Done will probably be the one that you're after.
Hope this helps
Thank you very much !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Pleasure. Just to add, within each of the histories, you need to iterate through the histories.items as well - there is a possibility of having multiples of them
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.