Project

General

Profile

Actions

Feature #12022

closed

Change/Update author when an issue is re-opened to the person who re-opens

Added by Brian Lindahl over 11 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues workflow
Target version:
-
Start date:
Due date:
% Done:

90%

Estimated time:
Resolution:
Wont fix

Description

This improvement could be guarded with a new Project setting.

Add the following code to app/models/issue.rb:

  def update_author_when_reopened
    if reopened?
      self.author = User.current
    end
  end

Add a call to it for before_save:

- before_save :close_duplicates, :update_author_when_reopened, :update_done_ratio_from_issue_status, :force_updated_on_change
+ before_save :close_duplicates, :update_author_when_reopened, :update_done_ratio_from_issue_status, :force_updated_on_change


Related issues

Related to Redmine - Feature #1739: Add ability to change issue authorReopenedGo MAEDA2008-08-04

Actions
Actions #1

Updated by Brian Lindahl over 11 years ago

Er...

Add a call to it for before_save:

- before_save :close_duplicates, :update_done_ratio_from_issue_status, :force_updated_on_change
+ before_save :close_duplicates, :update_author_when_reopened, :update_done_ratio_from_issue_status, :force_updated_on_change

Actions #2

Updated by Anonymous over 11 years ago

Wouldn't this destroy the record of the original author...?

Actions #3

Updated by Go MAEDA about 3 years ago

  • Status changed from New to Closed
  • Resolution set to Wont fix

I can't think of use cases for the feature. And I believe that the behavior is confusing and undesirable for most users.

However, if the #1739 is implemented in the future, I think what you want to do can be achieved manually.

Actions #4

Updated by Go MAEDA about 3 years ago

  • Related to Feature #1739: Add ability to change issue author added
Actions

Also available in: Atom PDF