create a new Major Incident from SOW through tab (+) / UI Action

Fariya Muskhan
Tera Contributor

Hi,

I’m attempting to add a new workspace tab option that allows users to create a Major Incident by updating the Chrome Tab JSON property. However, I’m unable to set the Major Incident state to “Accepted” through the JSON configuration.

I also tried invoking the MIM Major Incident Template via the same JSON configuration, but that approach is not working either.

Could you please confirm whether this is possible through the Chrome Tab JSON object? If it isn’t supported, what is the recommended approach—such as using a UI Action—to create a Major Incident and automatically apply the required state/template?

Thanks in Advance!!

2 REPLIES 2

pr8172510
Giga Guru

Hi Fariya,

The chrome_tab JSON (newTabMenu) lets you add a "New Major Incident" option and pre-fill some fields via query parameter, but setting major_incident_state=accepted directly on creation often doesn't work. Same with calling the MIM template — the field has special processing in Major Incident Management, so it doesn't behave like normal fields.

Recommended approach:

Create a UI Action on the Incident table. This is cleaner and more reliable for auto-setting the state + applying the template.

pr8172510_0-1776678074505.png

 

var inc = new GlideRecord('incident');
inc.initialize();

// Basic details
inc.short_description = "Major Incident created from Workspace";

// Set Major Incident fields
inc.priority = 1;
inc.impact = 1;
inc.urgency = 1;

 
inc.state = 2; // State = Accepted (verify value in your instance)

 
inc.major_incident_state = "accepted";

var newSysId = inc.insert();

// Open new record in workspace
action.openGlideRecord(inc);



pr8172510_0-1776679198491.png