How to make certain Issues visible only to a specific user group in YouTrack
In our YouTrack project all issues are historically visible to "all users" which is also the group with the same name that shipped with YouTrack.
Now we are adding new users with restricted permissions and they should only see a small part of the issues. They should start seeing no issues at all, and then single issues (old issues and new issues) should selectively made visible to them.
I tried different ways to make this happen, but without success.
1) If I create a group for them "restricted group" - then I can give this group permission to view issues. And then they can see all issues, and if I uncheck the "view issues" privelege checkbox, then they cannot see any issue at all. This does not help me, as they either see all issues or none.
2) I tried to change the "issues is visible to" field in a single issue and set it to "restricted group". But YouTrack won't let me, only "all users" or "project XY Assignees" can be selected here. Edit: this is still true, after I add myself to "restricted group", see Alex.V's answer to this question
So I deleted the group "restricted group" and tried to work with "assignees":
3) I choose an issue and set its visibility to "My Project Assignees". And then I add a user to the "My Projects Assignees" group. But now the user can see ALL the issues in that project. In the group settings I find out, that the checkbox "Read issues" in the definition of this group's role "Developer" can be unchecked, and this changes visibility. But again for all Issues! And it does not matter If I set the visibility for the issue to "My Project Assignees" or to "All users" - now the user can see no issues at all, after unchecking the checkbox.
This is YouTrack 4.2.2 (build #6029 [23-May-2013 18:30]
Please show me a way to selectively make issues visible to a group of users and invisible again. I know it is possibly quite simple, so what is my mistake?
Now we are adding new users with restricted permissions and they should only see a small part of the issues. They should start seeing no issues at all, and then single issues (old issues and new issues) should selectively made visible to them.
I tried different ways to make this happen, but without success.
1) If I create a group for them "restricted group" - then I can give this group permission to view issues. And then they can see all issues, and if I uncheck the "view issues" privelege checkbox, then they cannot see any issue at all. This does not help me, as they either see all issues or none.
2) I tried to change the "issues is visible to" field in a single issue and set it to "restricted group". But YouTrack won't let me, only "all users" or "project XY Assignees" can be selected here. Edit: this is still true, after I add myself to "restricted group", see Alex.V's answer to this question
So I deleted the group "restricted group" and tried to work with "assignees":
3) I choose an issue and set its visibility to "My Project Assignees". And then I add a user to the "My Projects Assignees" group. But now the user can see ALL the issues in that project. In the group settings I find out, that the checkbox "Read issues" in the definition of this group's role "Developer" can be unchecked, and this changes visibility. But again for all Issues! And it does not matter If I set the visibility for the issue to "My Project Assignees" or to "All users" - now the user can see no issues at all, after unchecking the checkbox.
This is YouTrack 4.2.2 (build #6029 [23-May-2013 18:30]
Please show me a way to selectively make issues visible to a group of users and invisible again. I know it is possibly quite simple, so what is my mistake?
Please sign in to leave a comment.
Seems I've answered this on stackoverflow, but if you have further questions, we can really proceed here.
Thank you, I checked, and I do posses 'Update Issue' permissions. In fact I can change the visibility with teh dropdown and set it to one of the groups, or I can set it back to "All Users".
The dropdown box at the top of the issue page acts only as a filter and you can only EXCLUDE users with this dropdown box that could already see the issue when visibility was still set to "all users".
So I think to acomplish what I want I will have to change all issues' visibility to let's say "admin1 group" and later switch only some of them back to "all users" so everybody can see those.
This is one of possible solutions. In case you decide to proceed with it, please mind that you can set visibility for multiple issues at once using YouTrack command window: mark several issue, press ctrl+alt+j. The command would be visible to group_name.
I am also going to update the stackexchange crosspost when it is all set.
The mass manipulation using the command window is great, I already discovered it and that's how we could put this solution to production very fast.
I have another question now: When a new issue is crreated, it is visible to evrybody by default and It's easy to forget to change the group. Can this be changed, so the default visibility is another group?
Thank you.
It's possible to create a simple workflow rule that will automatically set visibility group for newly created issues. Do you need assistance on this?
The rule should be applied as early as possible to a new issue. No need for a message, it can silentliy apply the visibility filter for the new issues ath teh moment it enters draft state.
But wait, when a user not in that admin group, nothing should happen - it has to stay visible for everybody.
Edit: I removed my suggestion here. Wrong code should be eliminated :)
I've corrected the syntax a little bit:
defaultVisibilityGroup.zip (2.2KB)