I want to add new states to incident form.

Rama21
Tera Contributor

I want to add new states to incident form.

 

1 ACCEPTED SOLUTION

Pranav Bhagat
Kilo Sage

Hi

 

If you want to add states the best practice is to modify the IncidentState Script Include,

 

The IncidentStateSNC and IncidentState Script Includes provide State constants for use in scripts.

  • Script Includes with SNC in the Name are meant to be read-only. (This ensures the SNC Script Includes are updated during upgrades.)
  • To impose pre-requisites or limits for moving from one state to another, you can incorporate new logic in the IncidentState Script Include.
  • To override a function defined in an SNC Script Include, copy that function to the paired version of the Script Include that doed not contain SNC. Paste and customize the function there.

It is considered best practice to refer to States in your scripts using constants
current.state.changesTo(IncidentState.CLOSED) rather than values
current.state.changeTo(7).

 

Please refer this doc

https://docs.servicenow.com/bundle/london-it-service-management/page/product/incident-management/con...

 

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Pranav

View solution in original post

5 REPLIES 5

Sam Ogden
Tera Guru

Hi Rama,

Documentation on adding additional states can be found here.  This article may also give some context around things to consider when adding in additional states

I hope this helps - please mark my answer as helpful or correct if so.

Thanks

Sam

Tejas Tamboli
Giga Guru

Hello Rama,

Please find below the links it might help you.

1) https://community.servicenow.com/community?id=community_question&sys_id=b38dc72ddb9cdbc01dcaf3231f96...

 

2) https://www.youtube.com/watch?v=9dHMvTAaXDs

 

3) https://docs.servicenow.com/bundle/london-it-service-management/page/product/incident-management/con...

 

 

 

I hope this will help you.

 

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response useful to you and help others to find information faster.

 

Thanks,

Tejas

Pranav Bhagat
Kilo Sage

Hi

 

If you want to add states the best practice is to modify the IncidentState Script Include,

 

The IncidentStateSNC and IncidentState Script Includes provide State constants for use in scripts.

  • Script Includes with SNC in the Name are meant to be read-only. (This ensures the SNC Script Includes are updated during upgrades.)
  • To impose pre-requisites or limits for moving from one state to another, you can incorporate new logic in the IncidentState Script Include.
  • To override a function defined in an SNC Script Include, copy that function to the paired version of the Script Include that doed not contain SNC. Paste and customize the function there.

It is considered best practice to refer to States in your scripts using constants
current.state.changesTo(IncidentState.CLOSED) rather than values
current.state.changeTo(7).

 

Please refer this doc

https://docs.servicenow.com/bundle/london-it-service-management/page/product/incident-management/con...

 

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Pranav

Rama21
Tera Contributor

Let me check and get back to you.