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

Mohammed Kemal
Tera Guru

I have a requirement that needs Problem state to be set as "Pending change" when a change request is created from a problem record.

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

Any help in doing this will be much appreciated!

1 ACCEPTED SOLUTION

Narendra Kota
Mega Sage

Hi,

In the UI Actions Create Normal Change and Create Emergency Change, add the below line in the script.

current.state = '3';

 

Mark my answer as correct or helpful if it helped.

View solution in original post

7 REPLIES 7

Tony Chatfield1
Kilo Patron

You could update your UI actions to do this

or simply add a BR to the Problem.rfc field, when the field changes from empty (to something), set the problem (current) state field to Pending Change.

Hi,

In the UI Actions Create Normal Change and Create Emergency Change, you can add the below line in the script.

 

changeRequest.setValue("state", 'value of pending Change');

 

Mark my answer as correct or helpful if it helped.

Narendra Kota
Mega Sage

Hi,

In the UI Actions Create Normal Change and Create Emergency Change, add the below line in the script.

current.state = '3';

 

Mark my answer as correct or helpful if it helped.

Hey, although the task validation was successful. My state for problem says assessed instead of pending change. Should i change the dictionary entry forms to achieve this goal instead?