How to Hide Tasks & RITMs from List View if User Doesn't have Access to Assignment Group

darronf
Tera Expert

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.

6 REPLIES 6

Community Alums
Not applicable

Hi,

 

Have your tried creating an ACL to handle this requirement ?

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; 
}

Community Alums
Not applicable

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

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.