To show/hide incidents to the watch list and group list people.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 09:00 PM
Hi Community,
I have a xyz checkbox, when this checkbox is checked, watch list and group list fields are mandatory. Whatever users and groups are added over there those users and groups should be able to see those incidents. For other users and groups who are not added into these fields shouldn't be able to see these incidents.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 11:21 PM
Hello @Poorva Bhawsar ,
You can replace this line 'var user = gs.getUser();' with below
var user = gs.getUserID();
And this line 'if (user.isMemberOf(watchlistArray[i].trim())) {' with below
if (user.includes(watchlistArray[i].trim())) {
Please mark this response as correct or helpful if it assisted you with your question.
Best Regards,
Rutuja Khalate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2024 08:44 PM
No this is not working.
I only want watchlist users and group list groups to view the incident records when xyz checkbox is true.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 11:29 PM
@Poorva Bhawsar In Watch list you can add only user right ? not groups. Do you have separate group list field ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2024 08:44 PM
Yes