If the logged in user is a member of the assignment group tagged to the Incident , then these fields

Vamsi kishore1
Tera Contributor

If the logged in user is a member of the assignment group tagged to the Incident then these fields should be visible

Customer Name
Phone Number
Email ID
fields should be visible for the assignment group for other group members it shouldn't be visible
 
1 REPLY 1

SAI VENKATESH
Tera Sage
Tera Sage

Hi @Vamsi kishore1 

 

You can try the below script in display business rule and change the assignment group based on your requirement

 

(function executeRule(current, previous /*null when async*/) {

	g_scratchpad.is_from_service_desk=gs.getUser().isMemberOf('ITSM App-Dev');
})(current, previous);

 

 

And you will the client script change the client script as per your requirement

 

function onLoad() {
   //Type appropriate comment here, and begin script below

   if(g_scratchpad.is_from_service_desk){
	g_form.addInfoMessage("part of group");
   }
   else{
	g_form.addInfoMessage("user is not part of group");
   }
   
}

 

 

Thanks and regards

Sai Venkatesh