Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

IncidentState Variables defined?

asd13
ServiceNow Employee

Hi,

Can anyone help me find where the IncidentState vars are defined?   There's several OOTB biz rules using statements such as:

current.incident_state.changesTo(IncidentState.CLOSED)

current.incident_state.changesTo(IncidentState.RESOLVED)

thanks
Dave

1 ACCEPTED SOLUTION

Jace Benson
Giga Sage

Looks like there is a OOTB business rule called "Load incident models into scratchpad" that defines them.  


View solution in original post

2 REPLIES 2

Jace Benson
Giga Sage

Looks like there is a OOTB business rule called "Load incident models into scratchpad" that defines them.  


Team,


Just want to add to Jace's reply



The values for IncidentState are defined in the IncidentState script include, that script include gets its values from the IncidentStateSNC script include. The



In my Helsinki dev instance the values are


IncidentStateSNC.NEW                               = "1";


IncidentStateSNC.IN_PROGRESS               = "2";


IncidentStateSNC.ACTIVE                         = IncidentStateSNC.IN_PROGRESS;


IncidentStateSNC.ON_HOLD                       = "3";


IncidentStateSNC.AWAITING_PROBLEM     = IncidentStateSNC.ON_HOLD;


IncidentStateSNC.AWAITING_USER_INFO = IncidentStateSNC.ON_HOLD;


IncidentStateSNC.AWAITING_EVIDENCE   = IncidentStateSNC.ON_HOLD;


IncidentStateSNC.RESOLVED                     = "6";


IncidentStateSNC.CLOSED                         = "7";


IncidentStateSNC.CANCELED                     = "8";



Thanks,



Cody