Auto-populate change request fields when ccreated from incident UI action

Glyph1415
Mega Contributor

 

  Hello,

 

    I am looking to auto-populate the fields caller, assigned to and assignment group on the change request form from incident when using the UI action. I did a lot of research and but still was unable to find the best solution. It seems like it might be accomplished with modifying the UI action or a business rule but I am not sure. Any help offered would be greatly appreciated.

 

1 ACCEPTED SOLUTION

Sagar Pagar
Tera Patron

Hi @Glyph1415,

You have to add the fields/columns in Create normal change/ your UI actions  UI actions.

 

Navigate to System UI/ System Definition --> UI actions and apply the filter as table is Incident.

Open the records with name Create normal change

 

Sample scripts to be added as  -

 

changeRequest.setValue("assignment_group", current.assignment_group);
changeRequest.setValue("assigned_to", current.assigned_to);

// add your other fields/columns

 

Thanks,

Sagar Pagar

The world works with ServiceNow

View solution in original post

2 REPLIES 2

Sagar Pagar
Tera Patron

Hi @Glyph1415,

You have to add the fields/columns in Create normal change/ your UI actions  UI actions.

 

Navigate to System UI/ System Definition --> UI actions and apply the filter as table is Incident.

Open the records with name Create normal change

 

Sample scripts to be added as  -

 

changeRequest.setValue("assignment_group", current.assignment_group);
changeRequest.setValue("assigned_to", current.assigned_to);

// add your other fields/columns

 

Thanks,

Sagar Pagar

The world works with ServiceNow

Glyph1415
Mega Contributor

I apologize for the delay, thank you for the reply!