Make Ui action available to some role users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 07:58 AM - edited 08-22-2023 10:11 AM
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() )
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 08:03 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 08:28 AM
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') )