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 07:43 AM
found a typo,
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:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 09:51 AM
Ok its because of the case, 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().toLowerCase().indexOf('informational standard change') >-1))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 10:09 AM
@Anurag Tripathi Thank you. Its working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2023 01:13 AM
Glad to hear, Can you mark my response Correct/helpful and close the thread?