People belong to one group should only change the priority of Major Incident.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2024 11:39 PM
Hi,
I have one requirement , i wrote on before business rule for restricting saying only Major incident group users should change the priority of Major incident. The thing is when we make this script active, The Major incident trigger rule is not working. Here is the code. The conditions are Priority changes to 1 or priority is 1 or Priority changes to 2 or Priority is 2-high.
var group1 = gs.getProperty('Major_Incident_Managers');
if (gs.getUser().isMemberOf(group1)) {
current.setAbortAction(false);
} else {
gs.addErrorMessage('The priority P1 & P2 can be upgraded by the Major incident managers');
current.setAbortAction(true);
}
1 REPLY 1

Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 12:04 AM
Hi @Atchutaram ,
You may want to create a ACL not Business Rule.
Please refer to this thread :https://www.servicenow.com/community/csm-forum/write-access-for-assignment-group-field/m-p/391028/pa...