Set Incident Ticket On Hold by only selected group of users

Max Lin
Tera Contributor

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!!

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@Max Lin 

you can use onLoad client script as mentioned by Tony and check the role and remove the option

which approach did you take?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

nameisnani
Mega Sage

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 

SunilKumar Padh, what value did your copy/paste add here?