Create a new view for specific assignment groups

sonita
Giga Guru

I need to change the default view ( the order of the fields in list view) for 3 assignment groups:

 

find_real_file.png

 

Any ideas pls?

1 ACCEPTED SOLUTION

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.

find_real_file.png

 

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

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

View solution in original post

5 REPLIES 5

Ahmmed Ali
Mega Sage

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

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

I just created a view rule ; it doesn't work .

can you post the view rule ?

 

Thanks,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali