3. Set the state to "Awaiting Change" when a Change is created from the incident using the existing "Create Normal Change" and "Create Emergency Change" UI actions.

anilkumar8
Tera Contributor

3. Set the state to "Awaiting Change" when a Change is created from the incident using the existing "Create Normal Change" and "Create Emergency Change" UI actions.

16 REPLIES 16

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Can you share what you've tried so far? Where you are stuck?

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Rajender1
Mega Sage

Hello Anil,

in UI Actions in incident table select which ui action you want to edit.

in that script try with below code

changeRequest.setValue("state",Awaiting Change );

i hope this may help you.

Thanks

Rajender

That won't work unless they added that state to the state field on the change table. OOTB that choice only exists in the on-hold reason field in the incident table.

What worked is the following line:

 

changeRequest.setValue("state", 4)

 

As we had set the state for 4 before.