Write a View Rule (View Should be visible to Regional Manager)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2023 12:02 AM
Write a View Rule (View Should be visible to Regional Manager)
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-10-2023 01:03 AM
In the View Rule form, let's check the Advanced checkbox.
The Script box will be displayed, you can use gs object there to verify the current user and then redirect them to the specific view per requirement.
(function overrideView(view, is_list) {
if(gs.hasRole('itil')){
answer = '<view_name>';
}
if(gs.getUser().isMemberOf('<group>')){
answer = '<view_name>';
}
})(view, is_list);
Cheers,
Tai Vu