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
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

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

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

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();

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

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

View solution in original post

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
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

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

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

DevtoSME
Giga Guru

Hi i did the first three already but im not understanding hat you mean by clicking UI actions and select first one? How am i changing the state for these two?

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();

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

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

DevtoSME
Giga Guru

thankyou this script worked!!