The CreatorCon Call for Content is officially open! Get started here.

Need to remove Promote to Major incident options in the three dots in SOW as shown in the snio

gharish
Tera Contributor

gharish_0-1758908317148.png

Need to remove the Promote to Major incident in SOW workspace for P3/P4 incidents? Any suggestions on how to resolve the issue in detail?

2 ACCEPTED SOLUTIONS

SP22
Giga Sage

Hello @gharish,

Open: System Definition → Script Includes.
-Locate MajorIncidentTriggerRulesSNC (read‑only) and MajorIncidentTriggerRules (your extension).
-Copy from MajorIncidentTriggerRulesSNC the functions canPromoteMIC into your editable MajorIncidentTriggerRules. Then add a priority check so they return false for P3/P4.

Sample script below:

var MajorIncidentTriggerRules = Class.create();
MajorIncidentTriggerRules.prototype = Object.extendsObject(MajorIncidentTriggerRulesSNC, {

  canPromoteMIC: function() {
    // Hide "Promote to Major Incident" unless P1 or P2
    if (current.priority != 1 && current.priority != 2)
      return false;

    // Defer to OOB logic
    return MajorIncidentTriggerRulesSNC.prototype.canPromoteMIC.call(this);
  },

  type: 'MajorIncidentTriggerRules'


If this helped to answer your query, please mark it helpful & accept the solution.

Thanks
Santosh.P

View solution in original post

Viraj Hudlikar
Tera Sage
Tera Sage

Hello @gharish 

Since you need to do it only in the sow workspace, you can edit the declarative action, which is showcased below for navigation.

VirajHudlikar_0-1758911910510.png

 

 Now open this record and add the record condition as per your requirement.

VirajHudlikar_1-1758912020077.png

 

Save it and navigate to the SOW workspace, and you won't see those declarative actions.

Before Change:

VirajHudlikar_3-1758912157368.png


After Change

VirajHudlikar_2-1758912079574.png

 

If you need this over the native UI, then just add the condition as showcased below:

VirajHudlikar_0-1758912514812.png

 

If my response has helped you, hit the helpful button, and if your concern is solved, do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

View solution in original post

6 REPLIES 6

kaushal_snow
Mega Sage

Hi @gharish ,

 

By customizing the MajorIncidentTriggerRules script include (extending the OOB MajorIncidentTriggerRulesSNC) and overriding canPromoteMIC() to return false for priorities P3/P4, thereby blocking the promote action, and/or by modifying the declarative Form/Record Action in the Workspace UI Builder (Now Experience) for SOW to add a condition so that the Promote to Major Incident action only appears when priority is 1 or 2...

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

Ankur Bawiskar
Tera Patron
Tera Patron

@gharish 

approach shared by @Viraj Hudlikar should help you.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader