- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2018 11:30 AM
I need to change the default view ( the order of the fields in list view) for 3 assignment groups:
Any ideas pls?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2018 12:13 PM
I assume if logged in user if part of any of those three assignment group then this view should be application.
then configure the view rule as below.
script:
(function overrideView(view, is_list) {
// Add your code here
//answer = null; // set the new view to answer
if(gs.getUser().isMemberOf("sys_id of first group") || gs.getUser().isMemberOf("sys_id of second group") || gs.getUser().isMemberOf("sys_id of third group") ){
answer = "test"; //change view name
}
})(view, is_list);
Thanks,
Ali
Thank you,
Ali

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2018 11:35 AM
You can achieve it using view rules.
below URL is for reference.
https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/administer/navigation_and_ui/task/t_CreateAViewRule.html
Thanks,
Ali
Thank you,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2018 11:59 AM
I just created a view rule ; it doesn't work .

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2018 12:02 PM
can you post the view rule ?
Thanks,
Ali
Thank you,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2018 12:07 PM