The CreatorCon Call for Content is officially open! Get started here.

UI action visibility based on roles and priority

pasupuleti loke
Tera Contributor

1.when change priority is P1 and P2  and role is change manger, only then Implement button should be visible

2.for remaining p3 and p4 tickets Implement button should be visible for all roles.

4 REPLIES 4

Sagar Pagar
Tera Patron

Hi @pasupuleti loke,

Can you elaborate in details. As your 2nd requirement conflicts 1st requirements.

 

Thanks,
Sagar Pagar

The world works with ServiceNow

Actually this is the requirement I am looking for the any ways to achieve if possible.

 

Thanks,

Lokesh

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

Go to UI actions from navigation:-

 

Saurav11_0-1665507919375.png

 

Search for implement Ui action

 

Saurav11_1-1665507951235.png

 

Then in the condition field put the below code(Replace the rolename with your rolename)

((gs.hasRole('rolename'))  || (!(gs.hasRole('rolename')) && current.priority!=1 && current.priority!=2))

 

Saurav11_2-1665508028418.png

 

Please mark my answer as correct based on Impact.

Hello,

 

Can you also mark my answer as correct.

 

Thanks.