- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2022 04:20 PM
Hello,
we added an "assess" stage to our standard change but now i have the "request approval" ui action showing
I would like to hide the "request approval" UI action from standard change but my condition doesn't seem to work:
condition:
gs.hasRole('itil,sn_change_write') && new ChangeFormUI(current).isAuthorizeAvailable()&&type!=standard
any idea why it is still showing?
ui action condition
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2022 07:35 PM
Hi @RBlor,
Try this updated condition as -
gs.hasRole('itil,sn_change_write') && new ChangeFormUI(current).isAuthorizeAvailable() && current.type!='standard'
or
gs.hasRole('itil,sn_change_write') && new ChangeFormUI(current).isAuthorizeAvailable() && current.type=='normal' || current.type=='emergency'
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2022 07:35 PM
Hi @RBlor,
Try this updated condition as -
gs.hasRole('itil,sn_change_write') && new ChangeFormUI(current).isAuthorizeAvailable() && current.type!='standard'
or
gs.hasRole('itil,sn_change_write') && new ChangeFormUI(current).isAuthorizeAvailable() && current.type=='normal' || current.type=='emergency'
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2022 08:13 AM
nope didnt seem to work. any other ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2022 11:01 PM
@RBlor There are 2 issues in the condition line. One is hasRole function accepts only one parameter and second is type!=standard should be current.type!='standard'
So the condition line should be changed as below:
Please mark as correct answer if this solves your issue.
ServiceNow Community Rising Star, Class of 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2022 08:13 AM
thank you but nope didnt seem to work...