View change

keshav77
Tera Contributor

Hi All,

 

I want to change the from view for assigned to  and assignment group.

I have created a new view but I want that view is only visible to assigned to  and assignment group only how I can achieve that.

2 REPLIES 2

Sujatha V M
Kilo Patron
Kilo Patron

@keshav77  Did you try to refer the below link for controlling the view?

 

https://www.servicenow.com/docs/bundle/xanadu-platform-user-interface/page/administer/navigation-and...

 

(function overrideView(view, is_list) {
//Force non-itil users to use the ess view
if (gs.hasRole("itil"))
{return;}
if (view.startsWith("ess"))
{return;}
// do not change view if it starts with sys_ (e.g. sys_ref_list)
if (view.startsWith("sys_"))
{return;}
answer = "ess"; // set the new view to answer
})(view, is_list);

 

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

Chandra18
Mega Sage

Hi @keshav77 
Create a view rule by Navigate to All > System UI > View Rules  ( Create a view rule ) and put the condition as below 

Chandra18_0-1734263181627.png

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Thank You!
Chandra