Creating a change request from Problem

gianluca5
Giga Contributor

HELP ITSM SIMULATOR

 

 We want the Problem state to be set as "Pending change" when a change request is created from a problem record.

 

1. Add the Problem State choice of 'Pending change'

 

2. Problem state should be set as "Pending change" when a change request is created using the UI action "Create Normal Change" or "Create Emergency Change"

6 REPLIES 6

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Hi Gianluca,

1) go to Show Choice List from the Create New Problem form:

find_real_file.png

Create the new Choice list and give the value 108:

find_real_file.png

2) Open the corresponding UI Action and add the following part of code:

find_real_file.png

current.state = 108;

Do the same also for the other UI Action.

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto

Sajilal
Mega Sage

1) Create a choice value first in Choice List table by checking the other choices for State field in Problem Table

2) in the UI actions, change the status condition to the new value you created in 1) point.

Let me know if any confusion.

Please Mark as Correct if this solves your issue and also mark ???? Helpful if it helps resolve your problem.

Thanks,
Saji

Yash Agrawal1
Tera Guru

Hello,

Please check the UI action "Create Normal Change" and the below code in it.

find_real_file.png

Please Mark it helpful/correct if my answer helps in any way to resolve
your query.
Reach out to me if any more help required.

Regards

Yash.K.Agrawal

 

Guichard C
Tera Contributor

I followed the directions for Part 1, but I'm still getting this:

Have you created the new problem state of pending change? Note: The steps contained in this document...

 

For part 2, I added "current.state =108;" in the Script field for both Create Normal Change & Create Emergency Change UI Action but keep getting this:

Are you setting the state value correctly within the script?

 

find_real_file.png

 

 

 

Where do I need to make changes at?