Set incident state to 'awaiting change' when normal change is created from incident record

Vishwa Pandya
Tera Expert

Hello,

I would like to 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" UI action.

Please guide me through this.

 

1 ACCEPTED SOLUTION

Actually I have created an "awaiting change" choice in the state field itself. And below solution worked for me. 

find_real_file.png

View solution in original post

8 REPLIES 8

MrMuhammad
Giga Sage

@Vishwa Pandya 

In the UI action after Line# 30 [current.rfc = sysId;] add below lines and done!

current.state = 3;
current.hold_reason = 5;

find_real_file.png

Regards,

Muhammad

Regards,
Muhammad

Its not working. I added the line like you suggested.

find_real_file.png

@Vishwa Pandya 

Please remove the quotes from '4'. It should be 4. Also, set the hold reason value as well.

In my instance state On hold is 3 and hold_reason value for awaiting change is 5. so the code looks like this.

current.state = 3;
current.hold_reason = 5;
Regards,
Muhammad

Actually I have created an "awaiting change" choice in the state field itself. And below solution worked for me. 

find_real_file.png