Feature #2694

Notification on loosing assignment

Added by Teddy L almost 14 years ago. Updated over 4 years ago.

Status:ClosedStart date:2009-02-07
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:


Category:Email notifications
Target version:1.4.0


When the user assigned to an issue change, old assigned user should receive a notification to be aware of this update too.

New method in journals.rb

    def old_value_for(prop)
        c = details.detect {|detail| detail.prop_key == prop}
        c ? c.old_value : nil

Updated method in issue.rb

  def recipients
    recipients = project.recipients
    # Author and assignee are always notified unless they have been locked
    recipients << author.mail if author && author.active?
    recipients << assigned_to.mail if assigned_to && assigned_to.active?

    old_assigned_to_id = @current_journal.old_value_for('assigned_to_id') if @current_journal
    old_assigned_to = User.find_by_id(old_assigned_to_id) if old_assigned_to_id
    recipients << old_assigned_to.mail if old_assigned_to && old_assigned_to.active?


Related issues

Related to Redmine - Defect #19197: Missing notification if assignee was a group Closed
Duplicated by Redmine - Defect #9551: Changing assignee should be notify the previous assignee Closed 2011-11-11

Associated revisions

Revision 8695
Added by Jean-Philippe Lang about 11 years ago

Notify previous assignee when assignee changes (#2694).


#1 Updated by Markus Knittig almost 14 years ago


#2 Updated by Jean-Philippe Lang about 11 years ago

  • Subject changed from Notification on loosing assignement to Notification on loosing assignment
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Target version set to 1.4.0
  • Resolution set to Fixed

Implemented in r8695.

#3 Updated by Go MAEDA almost 8 years ago

  • Related to Defect #19197: Missing notification if assignee was a group added

#4 Updated by Harm Ant over 4 years ago

The issue was fixed in 2.x.

But after upgrading to Redmine 3.4.2.stable notifications to old assignee is absent!

Also available in: Atom PDF