Feature #23349
openForce comment on status change
0%
Description
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?
Related issues
Updated by Go MAEDA over 8 years ago
- Related to Feature #12236: Option to make Comment field required added
Updated by Jake Kemme over 8 years ago
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.
Updated by Anonymous over 8 years ago
Thanks for the hint. I will take at a look at the plugin.
Updated by Go MAEDA almost 8 years ago
- Related to Feature #5553: Force closing message added
Updated by sosogh sosogh over 1 year 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
https://github.com/anteo/redmine_custom_workflows/issues/57#issuecomment-233430599