Set Incident Ticket On Hold by only selected group of users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2023 08:33 PM
Hi, i have a requirement to allow only specific group of users to set an Incident Ticket Status On Hold.
This users can either be manually selected, or i also can create a group to hold them.
Is this possible?
Thank you!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2023 09:44 PM
you can use onLoad client script as mentioned by Tony and check the role and remove the option
which approach did you take?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2023 10:06 PM
Hi @Max Lin ,
Try this
//if the user does not have the role, then hide the option from them if(!gs_user.hasRoleExactly('customRoleName')) { g_form.removeOption('state' 3); }
Kindly mark correct and helpful if Applicable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2023 11:12 PM
SunilKumar Padh, what value did your copy/paste add here?