Feature #12022

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

Added by Brian Lindahl about 10 years ago. Updated over 1 year ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

90%

Category:Issues workflow
Target version:-
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 author Reopened 2008-08-04

History

#1 Updated by Brian Lindahl about 10 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

#2 Updated by Anonymous about 10 years ago

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

#3 Updated by Go MAEDA over 1 year 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.

#4 Updated by Go MAEDA over 1 year ago

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

Also available in: Atom PDF