state change to on hold and hold reason on awaiting change when we create change from incidnet

Adi MD
Tera Contributor

state change to on hold and hold reason

 

on awaiting change when we create

 

change from incidnet. 

 

Thank you !!

 

 

 

4 REPLIES 4

raycallan
Giga Guru

Hi Adi,

Assuming you are using the 'Create Change' button from the header you would need to edit the UI Action for that button to something like the screenshot

You will need to modify you field names and the value behind them as per your own system

Ray

current.state = -4;
current.u_hold_reason = 'awaiting_change'

 

raycallan_0-1667466279321.png

 

Adi MD
Tera Contributor

True state gets in hold but what about on hold reason how can I put that as awaiting change as awaiting change is new choice field not ootb

Hi Adi,

 

To get the filed name then you need to right click on the label for that field the Show 'field_name'. Use the value inside the quotes for the field name. 

Click Show Choice List to display all the choices and select the appropriate Value you have set for Awaiting Change

 

As per @Balaram7 you can create a dependant value if you want the ability to set it manually

 

Ray

raycallan_1-1667468425258.png

 

 

 

Balaram7
Kilo Sage

Hi Adi,

 

Create a new choice by configuring choice list of OnHold reason field and add "Awaiting change" as a new choice.

and add that field is dependent to the incident State field choice "onhold". and follow the steps mentioned by Raycallan in "Create change" Ui action.

 

 

Hope this will helps you.

 

 

Thank you,

Balaram.