Hiding an Assignment Group based on group membership

Jennifer Red
Tera Expert

I've been asked to make an assignment group hidden except from our Service Desk group. Any ideas on how to achieve this? I've seen lots of things that recommend using reference qualifiers and it appears that if statements can be used, but my syntax must be incorrect or something. Any help would be appreciated. Below is what I thought would work, but it isn't. The types themselves will work and I can exclude the group itself, but not both together with this if statement.

 

javascript:if (gs.getUser().isMemberOf('b73bbd12db42a81070d2285b13961950')) { typeLIKE5e160a791b223740d91863d5ec4bcb3a^^ORtypeLIKE6570ff65db6a6810daf5296848961905^; } else { typeLIKE5e160a791b223740d91863d5ec4bcb3a^ORtypeLIKE6570ff65db6a6810daf5296848961905^name!=Excluded_Group^^EQ; }

1 REPLY 1

SanjivMeher
Kilo Patron
Kilo Patron

I made few changes. Can you try?

 

javascript:if (gs.getUser().isMemberOf('b73bbd12db42a81070d2285b13961950'){ typeLIKE5e160a791b223740d91863d5ec4bcb3a^ORtypeLIKE6570ff65db6a6810daf5296848961905} else { typeLIKE5e160a791b223740d91863d5ec4bcb3a^ORtypeLIKE6570ff65db6a6810daf5296848961905^name!=Excluded_Group}

 

If this doesnt work, try to split it and run to see if it works, like try 

javascript:typeLIKE5e160a791b223740d91863d5ec4bcb3a^ORtypeLIKE6570ff65db6a6810daf5296848961905^name!=Excluded_Group

And try this separately

javascript:if (gs.getUser().isMemberOf('b73bbd12db42a81070d2285b13961950'){ typeLIKE5e160a791b223740d91863d5ec4bcb3a^ORtypeLIKE6570ff65db6a6810daf5296848961905}


Please mark this response as correct or helpful if it assisted you with your question.