Project

General

Profile

Actions

Feature #23349

open

Force comment on status change

Feature #23349: Force comment on status change

Added by Anonymous over 10 years ago. Updated almost 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Issues workflow
Target version:
-
Resolution:

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 2 (1 open — 1 closed)

Related to Redmine - Feature #12236: Option to make Comment field requiredClosedActions
Related to Redmine - Feature #5553: Force closing messageNewActions

Updated by Go MAEDA over 10 years ago Actions #1

  • Related to Feature #12236: Option to make Comment field required added

Updated by Jake Kemme over 10 years ago Actions #2

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.

Plugins Directory » Custom Workflows

Updated by Anonymous over 10 years ago Actions #3

Thanks for the hint. I will take at a look at the plugin.

Updated by Go MAEDA almost 10 years ago Actions #4

Updated by sosogh sosogh almost 4 years ago Actions #5

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.

Plugins Directory » Custom Workflows

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

Actions

Also available in: PDF Atom