- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2019 07:30 AM
Hello,
The IT department (Tier 1) are assigned HR related incidents (as an example, employee exit) that are category "Exit". I want to to restrict who can see those incidents (Category Exit, in this example but i have several categories i need to do this on) to only Tier 1. From my reading it looks like the way to go would be to use a business rule or to use ACL. Being brand new to all of this I dont want to break everything else and iam not sure how to go about it.
Any help or advice would be greatly appreciated.
Thanks,
Marc
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2019 08:13 AM
Hi Marc,
You can refer OOTB 'incident query' business rule.
Set 'incident query' BR inactive and create another BR and modify it according to our requirement.
Mark If Correct/Helpful
Regards,
Ajay

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2019 08:13 AM
Hi Marc,
You can refer OOTB 'incident query' business rule.
Set 'incident query' BR inactive and create another BR and modify it according to our requirement.
Mark If Correct/Helpful
Regards,
Ajay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2019 08:45 AM
Hi Ajay,
Thanks for pointing me in the correct direction.
This is what i see in the OOTB BR.
if (!gs.hasRole("itil") && gs.isInteractive()) {
var u = gs.getUserID();
var qc = current.addQuery("caller_id", u).addOrCondition("opened_by", u).addOrCondition("watch_list", "CONTAINS", u);
gs.print("query restricted to user: " + u);
}
I can probably figure out how to code what i need to do however I also don't want to mess up.
The OOTB BR gives non Itil users access to their own incidents as well as incidents they are on the watch list for. So my guess here would be to add an else if statement something like
else if(gs.hasRole("itil") && !gs.getUser().isMemberOf('sys_id_of Tier1')){
var u = gs.getUserID();
var qc = current.addQuery("category", "DOES NOT CONTAIN","EXIT");
gs.print("query restricted for user: " + u);
}
Am i close or out to lunch?
Regards,
Marc

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2019 08:58 AM
Yes Marc....go ahead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2019 11:13 AM
Hi Ajay,
Well it seems to work pretty well though it needs tweaking a bit. Thanks for your help and wisdom.
Regards,
Marc