Project

General

Profile

Actions

Feature #16195

open

Role with Issue visibility Permission as "View Issues within current users' group"

Feature #16195: Role with Issue visibility Permission as "View Issues within current users' group"

Added by Rupesh Helwade almost 13 years ago. Updated 9 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Groups
Target version:
-
Resolution:

Description

May be related to Feature #16074 request

We have 3 options for each role Issue Visibility,
  1. All issues
  2. All non-private issues
  3. Issues assigned / Created by User.

How can the users from same group see each others issues, yet they are deprived of seeing issues from other groups.

Consider :
I have a Project named "The Project" with tracker as "Tickets"

We have 4 users user1, user2, user3 and user4.
We have two groups:
"Our Group" has user1 and user2
"Their Group" has user3 and user4

user1 and user2 should be able to see each others issues but not of user3 and user4 and vice versa.

With current visibility permissions I do not see solution to this.

Hence we can add new Issue visibility Permission as
"View Issues within current users' group"


Files

group.patch (3.01 KB) group.patch Frédéric Senault, 2014-06-23 13:14
Screen Shot 2021-01-26 at 17.18.53.png (119 KB) Screen Shot 2021-01-26 at 17.18.53.png Michael M, 2021-01-26 18:19
clipboard-202602181517-mgiiz.png (29.6 KB) clipboard-202602181517-mgiiz.png Francesco Chimi, 2026-02-18 15:17

Related issues 4 (1 open — 3 closed)

Related to Redmine - Feature #16074: To use user groups at another places in redmineNewActions
Related to Redmine - Feature #7867: Add filters for "Author's group" and "Author's role" to issues listClosedGo MAEDAActions
Has duplicate Redmine - Feature #18684: Add option Role: Issues visibility: Issues created by a member of the users group, or issues assigned to a user of the groupClosedActions
Has duplicate Redmine - Defect #34949: Possibility to set project visable for users groupClosedActions

Updated by Vincent Castelin over 12 years ago Actions #1

I don't know if it will help but I'm facing the same situation. I would like to have several customers' groups to have access to the same project without viewing each other's groups issues. Currently it does not seem possible and the only workaround I see is to organize these kind of 'multi-customers' projects on a customers basis rather than on a projects one. But I'm a Redmine newbie, I may find other solutions. :)

Updated by Rupesh Helwade over 12 years ago Actions #2

Could also be related to Feature #7867

Updated by Vincent Castelin over 12 years ago Actions #3

Rupesh, you can assign issues to a group. So that all people from the group will see it. With the "Issues assigned / Created by User" rule, the other groups won't see this issue. The 'bad side' is that you need to remove the assignment right if you want to keep confidential the other groups having access to this project.

Updated by Toshi MARUYAMA over 12 years ago Actions #4

  • Related to Feature #16074: To use user groups at another places in redmine added

Updated by Toshi MARUYAMA over 12 years ago Actions #5

  • Related to Feature #7867: Add filters for "Author's group" and "Author's role" to issues list added

Updated by Frédéric Senault over 12 years ago Actions #6

If it's of use, I'm also in the same situation ; I've attempted to implement this with the attached patch (against 2.5.1), and it seems to work.

Updated by Alessio Pollero about 12 years ago Actions #7

The patch is OK, I don't know why it isn't already included in the stable release . It should be included as soon as possible !

Updated by Wei Qiu about 12 years ago Actions #8

Frédéric Senault wrote:

If it's of use, I'm also in the same situation ; I've attempted to implement this with the attached patch (against 2.5.1), and it seems to work.

Hi, how can I use the group filter after I attached this patch? Thanks.

Updated by Alexis Parent about 11 years ago Actions #9

+1

Updated by Toshi MARUYAMA about 11 years ago Actions #10

  • Has duplicate Feature #18684: Add option Role: Issues visibility: Issues created by a member of the users group, or issues assigned to a user of the group added

Updated by Omiros Metaxas about 11 years ago Actions #11

We also need such feature and doesn't seem so hard to implement.
Is there a road map for this? Why proposed patch hasn't been included in a release?

Updated by Ezequiel Nicolazzi over 9 years ago Actions #12

Patch #16195-6 works for me in Redmine 3.3.1, 3 years after it was written. Thanks Frédéric Senault. To my opinion, this should be added to stable redmine.

Updated by R S over 9 years ago Actions #13

Patch #16195 don´t work for me in Redmine 3.0.3, anyone can help me about changes to the patch so can work on this version?

Updated by Juan de Dios Galan about 8 years ago Actions #14

We are very interested in this issue. We work in Redmine 3.4.6. Is there any posibility of updating this patch or to include this funcionality in current release?

Updated by Olivier Reyre about 7 years ago Actions #15

Rupesh Helwade wrote:

May be related to Feature #16074 request

We have 3 options for each role Issue Visibility,
  1. All issues
  2. All non-private issues
  3. Issues assigned / Created by User.

How can the users from same group see each others issues, yet they are deprived of seeing issues from other groups.

Consider :
I have a Project named "The Project" with tracker as "Tickets"

We have 4 users user1, user2, user3 and user4.
We have two groups:
"Our Group" has user1 and user2
"Their Group" has user3 and user4

user1 and user2 should be able to see each others issues but not of user3 and user4 and vice versa.

With current visibility permissions I do not see solution to this.

Hence we can add new Issue visibility Permission as
"View Issues within current users' group"

By any chance, this feature can be added in a stable release ?

Updated by Robert Röttger almost 7 years ago Actions #16

+1 for this ticket. need it for redmine version 4.

useful for a help desk where different company departments are reporting tickets but only should be able to see tickets from their own department.

Updated by VD DV over 6 years ago Actions #17

+1 Great feature.

Updated by Michael M almost 6 years ago Actions #18

+1 Great feature.

Updated by Michael M almost 6 years ago Actions #19

Just implemented the patch to Redmine 4.1.1
Works with one exception.
User1 and User2 are in the same group.
User1 creates an issue.
User2 creates an issue.

When User1 logs in, he / she can see own issues and can see details of issue, can see the second issue created by user2 on list, but when the user try to click on the issue for more details, gets an authorization error.
The other way around the same.

Updated by Michael M almost 6 years ago Actions #20

Michael Michalewicz wrote:

Just implemented the patch to Redmine 4.1.1
Works with one exception.
User1 and User2 are in the same group.
User1 creates an issue.
User2 creates an issue.

When User1 logs in, he / she can see own issues and can see details of issue, can see the second issue created by user2 on list, but when the user try to click on the issue for more details, gets an authorization error.
The other way around the same.

OK, now I know what I missed.
The Group of the user must be assigned to the issue.
Sorry for the mistake.

Is there any option to make this more as the Group of Users that are assigned to the specific group?
so that the issues can be assigned to anybody, but user within the same group of user will see the issue on list and the details of progress?

Updated by Dines T over 5 years ago Actions #21

Michael Michalewicz: Did you resolve problem with this patch on new redmine? f.e. 4.0.7 or 4.1.1? Since I've patched 4.0.7 I have 403 when I change Issues visibility to 'Issues created by or assigned to the user's group(s)' and try to open any own issue.

Updated by Bernhard Rohloff over 5 years ago Actions #22

  • Has duplicate Defect #34949: Possibility to set project visable for users group added

Updated by Francesco Chimi 10 months ago Actions #23

I've used this patch in Redmine 6.1.

How to filter issues also in Tab Issues of the project?

Updated by Francesco Chimi 9 months ago Actions #24

Resolved, this that piece of code for issue.rb for redmine 6.1.1:

         when 'group'   #SAURO
            user_ids = ([user.id] + user.groups.pluck(:id).compact + user.groups.map(&:users).flatten.pluck(:id).compact).uniq
            "( #{table_name}.author_id in (#{user_ids.join(',')}) OR #{table_name}.assigned_to_id IN (#{user_ids.join(',')}))" 
[..]

          when 'group' #SAURO
            user.groups.map(&:users).flatten.uniq.inject(false) { |p, u| p ||= (self.author == u || u.is_or_belongs_to?(assigned_to)) }

Actions

Also available in: PDF Atom