How can I populate the parent field when creating request from an incident

Alon Grod
Tera Expert

When creating a new Request from an incident, we the 'Create Request' OOB UI Action. I need to fill the 'parent' field on the new ritm with the current incident value. How can I achieve that?

Screenshot 2023-12-03 at 11.30.50.png

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@Alon Grod 

why on RITM?

parent field on REQ already gets populated with INC?

Why not use that?

For populating parent on RITM you will require before insert BR logic.

current.parent = current.request.parent;

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar the parent field on the REQ is not populated with the relevant INCIDENT when I click 'Create Request' From the incident.

@Alon Grod 

It should and it will. It happens in OOB instance.

AnkurBawiskar_0-1701600127017.png

 

Unless your instance has some custom script/logic to populate or clear it this should not happen

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar its not getting populated in my instance, any suggestion for adjustment?