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

Gaurav Shirsat
Mega Sage

Hi Rama

You can Add or Remove the fields from the the Form.follow the steps which I have given you below.

Open Your Form>Right Click on the Field>Configure Dictionary>Choice Field in the Bottom>Click New after finishing your work click on you have to right click on the banner and select insert and stay and for delete simply select the check box and delete it.

find_real_file.png

find_real_file.png

find_real_file.png

 

Please Mark Correct and Helpful

Thanks and Regards

Gaurav Shirsat