Add the itil Role to Promote Major incident

Ricardo Sanche3
Tera Contributor

I want to add the ITIL role to Promote major incident UI action. ITIL users are also able to see the promote UI action and they can promote the incident to Major incident. I have added in the condition but it is not working.

 

new sn_major_inc_mgmt.MajorIncidentTriggerRules(current).canPromoteMIC() && gs.hasRole('itil');

1 ACCEPTED SOLUTION

Musab Rasheed
Tera Sage
Tera Sage

Hello,

You have added 'AND' condition instead of 'OR' so try below

new sn_major_inc_mgmt.MajorIncidentTriggerRules(current).canPromoteMIC() || gs.hasRole('itil');
Please hit like and mark my response as correct if that helps
Regards,
Musab

View solution in original post

2 REPLIES 2

Musab Rasheed
Tera Sage
Tera Sage

Hello,

You have added 'AND' condition instead of 'OR' so try below

new sn_major_inc_mgmt.MajorIncidentTriggerRules(current).canPromoteMIC() || gs.hasRole('itil');
Please hit like and mark my response as correct if that helps
Regards,
Musab

i try that and is not working