Feature #44253
openAdd an "Assignee or watcher" filter to issue queries
Description
Background¶
Redmine provides separate "Assignee" and "Watcher" filters for issue queries. Since filters on different fields are combined with AND, users cannot retrieve issues where a user is either the assignee OR a watcher.
This is useful when users want to display their own assigned issues together with issues assigned to another team that they are watching. For example, these issues can be displayed together in a cross-project issue list or Gantt chart to monitor dependencies and delays.
Proposed change¶
Add a new issue filter:
- Label: "Assignee or watcher"
- Internal name:
assigned_to_or_watcher_id - Type: user/group list
- Operators: "is" and "is not"
The filter is available to logged-in users and supports << me >> as well as selectable users and groups.
For the "is" operator, an issue matches when the selected user or group is either the current assignee or a watcher.
For the "is not" operator, an issue matches only when the selected user or group is neither the current assignee nor a watcher.
When << me >> is selected, the current user and their groups are included, consistently with the existing Assignee and Watcher filters. Issues matching both conditions are returned only once.
The existing watcher visibility rules are preserved. Users can filter their own watched issues without the "View issue watchers" permission. Watcher conditions for other users are applied only to projects where the current user has that permission.
Related issue¶
This request is related to #10975.
#10975 was resolved based on an old plugin and used the broader concept of "involved in", including the issue author. This proposal has narrower semantics: the current assignee OR a watcher, implemented directly in Redmine core.
Patch¶
The patch is based on Redmine master at revision c8c8b82ed8fa732bdf45f80d9e1022344b379869.
It includes unit tests consistent with the existing Assignee and Watcher filter tests. No database migration is required.
Files
No data to display