We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How to Set the state on the incident record to "Awaiting Change" when a Change is created from an in

DevtoSME
Giga Guru

Im doing one of the ITSM implementation task and its asking to 

1. Disable the State choice: "On Hold". 

2. Add a new State choice with the Label of: "Awaiting Change", in the sys choice record make the Value field: 4.

3. Set the state on the incident record to "Awaiting Change" when a Change is created from an incident, by updating the existing "Create Normal Change" and "Create Emergency Change" UI actions.

I'm not sure i understand the question. How do i change the state once the change is created from the incident record. Is this a UI policy ? am i changing the state on the task table or incident table? 

2 ACCEPTED SOLUTIONS

Dr Atul G- LNG
Tera Patron

Hi @DevtoSME 

 

LearnNGrowAtul_0-1703002843909.png

LearnNGrowAtul_1-1703002963887.png

 

Make it Inactive True

Click on New

LearnNGrowAtul_2-1703003055739.png

Go to UI action

LearnNGrowAtul_3-1703003140102.png

 

Select 1st one

 

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG

****************************************************************************************************************

View solution in original post

Hi @DevtoSME 

 

This is what we need

https://www.servicenow.com/community/itsm-forum/set-incident-state-to-awaiting-change-when-normal-ch...

LearnNGrowAtul_0-1703004711875.png

Add this code here and test

 current.setValue('state',4);
    current.update();

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG

****************************************************************************************************************

View solution in original post

5 REPLIES 5

DevtoSME
Giga Guru

thankyou this script worked!!