- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago - last edited 4 weeks ago
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.
Now open this record and add the record condition as per your requirement.
Save it and navigate to the SOW workspace, and you won't see those declarative actions.
Before Change:
After Change
If you need this over the native UI, then just add the condition as showcased below:
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
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.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader