how to hide Request approval button for particular change request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2023 04:03 AM
we have created standard change we need to hide request approval button only for that change request. i have tried using script in UI policy but its not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 06:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 07:10 AM
Paste your condition also here, i'll edit and and give back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 07:16 AM
gs.hasRole('itil,sn_change_write') &&( new ChangeFormUI(current).isAuthorizeAvailable() || (current.type == 'standard' && current.state=='-5') || (current.type =='standard' && current.short_description.toString().IndexOf('informational standard change') >-1))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 07:28 AM
Hey
Try this
gs.hasRole('itil,sn_change_write') &&( new ChangeFormUI(current).isAuthorizeAvailable() || (current.type == 'standard' && current.state=='-5') && !(current.type =='standard' && current.short_description.toString().IndexOf('informational standard change') >-1))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 07:37 AM
@Anurag Tripathi ,
I tried this but its not working
gs.hasRole('itil,sn_change_write') &&( new ChangeFormUI(current).isAuthorizeAvailable() || (current.type == 'standard' && current.state=='-5') && !(current.type =='standard' && current.short_description.toString().IndexOf('informational standard change') >-1))