Force comment on status change
When an issue or feature request has its status changed, especially to status "rejected", comments are very helpful but are often omitted. Could it be implemented, so that a status change requires the comment field to be filled?
Updated by sosogh sosogh 7 months ago
Jake Kemme wrote:
We use the custom workflow plugin to accomplish this, which lets you add simple scripts that execute before or after save to add custom behavior such as this.
If using custom workflow plugin , one can use this code in "before_save"
if @issue.status_id_changed? unless @issue.current_journal.nil? #check if the issue has a journal if @issue.current_journal.notes.empty? #test if notes has content errors.add :base, 'Cannot resolve issue without comment.' end end end