Make Ui action available to some role users

sravya03
Tera Contributor

Make copy incident Ui action available to itil role users only when priority is 3 or 4. 

Right now copy incident is available for itil users for all priorities as per OOB.

Need to modify condition which make itil users can seen only when priority is 3/4.

 

Condition:

IncidentUtils.isCopyIncidentEnabled() && ( (gs.hasRole("itil") || (GlidePluginManager.isActive("com.snc.itsm.roles.incident_management") && gs.hasRole("sn_incident_write"))) || current.caller_id == gs.getUserID() )

 

2 REPLIES 2

Samaksh Wani
Giga Sage
Giga Sage

Hello @sravya03 

 

Condition :-

 

(current.priority == '3' || current.priority == '4')

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.

 

Regards,

Samaksh

Eswar Chappa
Mega Sage
Mega Sage

Hi @sravya03 Can you please update your Condition as per the @Samaksh Wani reply the updated condition looks simiar

Condition:

IncidentUtils.isCopyIncidentEnabled() && ( (gs.hasRole("itil") || (GlidePluginManager.isActive("com.snc.itsm.roles.incident_management") && gs.hasRole("sn_incident_write"))) || current.caller_id == gs.getUserID()&&(current.priority == '3' || current.priority == '4') )