Project

General

Profile

Actions

Defect #44825

open

Members of previously assigned group are not notified when issue is reassigned

Defect #44825: Members of previously assigned group are not notified when issue is reassigned

Added by Joel Krinn 3 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Email notifications
Target version:
-
Resolution:
Affected version:

Description

Redmine version: 7.0.2 (Rails 8.1.4, PostgreSQL), changelog up to 7.0.4 lists no related fix.

Steps to reproduce:
1. Enable "Allow issue assignment to groups".
2. Issue is assigned to group "Tech" (members: A, B, C).
User A is neither author nor watcher of the issue.
User A has mail notification "Only for things I watch or I'm assigned to" (only_assigned).
3. User D reassigns the issue from "Tech" to himself
(reproducible via the issue form and via the console):

i = Issue.find(ID)
i.init_journal(User.find_by_login('D'))
i.assigned_to = User.find_by_login('D')
i.save!

Expected:
Members of the previously assigned group (A, B, C) are notified, as before the upgrade
(Issue#notified_users includes previous_assignee).

Actual:
Only D receives an issue_edit notification. Members of the previous group get no mail.

Notes:
- Directly after save!, i.assigned_to_id_before_last_save returns the group id
and i.previous_assignee returns the group.
- Journal#notified_users for the same journal, loaded afterwards, does not contain
the group members (previous_assignee is nil on a freshly loaded issue).
- The issue is saved only once in the request (verified via an after_save log hook),
so it is not caused by a second save.
- Workaround: prepend Journal#notified_users and add the previous assignee taken from
the journal detail (assigned_to_id old_value).

Systeminformation:
Linux redmine 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 GNU/Linux

Environment:
Redmine version 7.0.2.stable
Ruby version 3.3.14-p208 (2026-11-19) [x86_64-linux-gnu]
Rails version 8.1.4
Environment production
Database adapter PostgreSQL
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
Redmine settings:
Redmine theme Circle (includes JavaScript)
SCM:
Subversion 1.14.5
Git 2.47.3
Filesystem
Redmine plugins:
additionals 4.7.0-main
redmine_agile 1.7.0
redmine_checklists 4.1.0
redmine_contacts 4.5.0
redmine_contacts_helpdesk 4.4.0
redmine_contacts_invoices 4.3.0
redmine_custom_workflows 3.1.1
redmine_drawio 1.5.5
redmine_finance 2.2.0
redmine_more_previews 5.0.9
redmine_people 1.7.0
redmine_products 2.3.0
redmine_questions 1.1.0
redmine_reporter 2.1.0
redmineup_tags 2.2.0

No data to display

Actions

Also available in: PDF Atom