Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Limit ITIL access to tickets assigned to their group AND when they are the caller

Abbie4
Tera Contributor

Hello

 

I have a business rule setup on incidents which limit some ITIL users to only see tickets assigned to their assignment group:

if(gs.getUser().isMemberOf("GROUPNAME")){
 current.addEncodedQuery("assignment_group=GROUPSYS_ID");
 
However I also want them to be able to see tickets where they are the caller, regardless of which assignment group the ticket is assigned to. I can't seem to get it to work using the same business rule.
 
Help?

Thanks
Abbie
1 ACCEPTED SOLUTION

 Please use the below code and check if this works for you.

if (gs.getUser().isMemberOf('Group_Name')) {
current.addEncodedQuery("caller_idDYNAMIC90d1921e5f510100a9ad2572f2b477fe^ORassignment_group=group_sysid^ORwatch_listLIKEjavascript:gs.getUserID()");
}

 

 

View solution in original post

10 REPLIES 10

 Please use the below code and check if this works for you.

if (gs.getUser().isMemberOf('Group_Name')) {
current.addEncodedQuery("caller_idDYNAMIC90d1921e5f510100a9ad2572f2b477fe^ORassignment_group=group_sysid^ORwatch_listLIKEjavascript:gs.getUserID()");
}