In a bug/story ticket workflow, I want to add a new step, or transition, between my "QA Failed" status and "Blocked" status, so that the user has to enter a reason for failing the ticket before it transitions to "Blocked".
Ideally, as soon as the user selects "QA Failed", they would be presented with a single-selection list of "reasons for failure" to choose from. For the sake of metrics gathering, that reason would need to stay with the ticket for future access through a JQL query. And of course, because the same ticket can be failed multiple times, and for different reasons, the solution would need to keep a record of each instance for the same reason.
If someone can offer guidance or suggestions on how to implement such a thing it would greatly appreciated.
Thanks in advance.