I'm looking for some assistance in a workflow I'm creating.
Some of our states require additional information to be present before we can allow that state to be set.
For example, we shouldn't be setting the state 'Won't Fix' without having spoken to the lead, and provided some solid reasons for the issue not being fixed, and so expect that reasoning to be present in the comment of the bug.
The easiest way I wish to approach this is to simply check for a recent comment when the state changes.
when state becomes Wont fix
if (issue comments last updated > last minute)
message "Please supply a comment before closing this"
issue state = issue state oldvalue
If you could help me with this workflow, or something similar, that'd be great.