How to Hide Tasks & RITMs from List View if User Doesn't have Access to Assignment Group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2024 01:34 PM
I created a Business Rule based on this article which works perfectly. People who aren't in the group cannot see it. However, I'm also needing to hide any Tasks or RITMs assigned to this group. How can this be done? UI Policy?? And can someone point me to a place to get started with the code to accomplish that? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 04:56 AM
Hi,
Have your tried creating an ACL to handle this requirement ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 11:24 AM - edited 06-18-2024 11:27 AM
Yes. I created an ACL, which indeed hid the Assignment Group, but it hid it from everyone - even the Assignment Group Members. I'm sure it's a problem with the code? Or maybe something else I've misconfigured. I just wanted the option for the group members to see the Assignment Group.
I set the condition for If the Assignment Group is not the Hidden Assignment Group I Created. Here's the code:
var answer = true;
var user = gs.getUser();
if(user.isMemberOf("3D71103cae473e821006e3e6ce536d43c5") && current.assignment_group != "3D71103cae473e821006e3e6ce536d43c5") {
answer = false;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 07:05 AM
Hi,
Could you try the below code, seems like the condition is invalid
var answer = false;
var user = gs.getUser();
if (user.isMemberOf("3D71103cae473e821006e3e6ce536d43c5") || current.assignment_group.sys_id == "3D71103cae473e821006e3e6ce536d43c5") {
answer = true;
}
if this solution is helpful, please mark it as helpful
Regards,
Sravani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 09:55 AM
Thanks so much for providing this option. I tried the code as is and even tweaked the code / conditions, but was unsuccessful at every turn. When I tried the code you provided...
- All Groups were hidden from non-members of the Hidden Group
- Members of the Hidden Group were able to see Tasks assigned to other groups, but Hidden Group Assignment Group field was still not visible.