Synchronization of Parent and Child incident fields (Especially related records)

GaominZ
Tera Contributor

When I create a child ticket, will the items of parent ticket be passed down?
Especially  the items in "Related Records" tab

1 Problem
2 Change Request

3 Caused by chang

I've try it but it didnt work. Is there any way to Synchronize these items when I creat child ticket?
Please kindly answer with officail document, many thanks!

1 ACCEPTED SOLUTION

Shivalika
Mega Sage

Hello @GaominZ 

 

No, there is no such OOB for syncing, you can create a before insert BR rule on child tasks table. 

 

And in the Actions tabs - you can directly set values from parent to child like 

 

Change request is "same as" parent.change_request

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@GaominZ 

there is no auto synchronization unless some OOB business rule etc does it.

You will have to do it as per your customer's requirement.

what's your exact business requirement?

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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @GaominZ 

 

Greetings!!

 

There is no out-of-the-box way to sync what you're looking for. However, you can use a Business Rule to update the child record. The related record is created separately, not as a child record, so nothing will be passed automatically. But you can write custom logic to sync it.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Medi C
Giga Sage

Hello @GaominZ,

 

As suggested by @Dr Atul G- LNG  there is no OOTB way. If you are looking for a custom solution you can use an on before business rule on your parent table like:

(function executeRule(current, previous /*null when async*/) {

    // Query child records where the parent ID matches
    var childGR = new GlideRecord('child_table_name'); // Replace with actual child table name
    childGR.addQuery('parent', current.sys_id); // Assuming 'parent' is the reference field to parent table
    childGR.query();

    while (childGR.next()) {
        // Update child fields with parent values
        childGR.field_name1 = current.field_name1; // Replace with actual field names
        childGR.field_name2 = current.field_name2;
        childGR.field_name3 = current.field_name3;

        childGR.update(); // Save changes to the child record
    }

})(current, previous);

 


If you found this helpful, please hit the thumbs-up button and mark as correct. That helps others find their solutions.

Shivalika
Mega Sage

Hello @GaominZ 

 

No, there is no such OOB for syncing, you can create a before insert BR rule on child tasks table. 

 

And in the Actions tabs - you can directly set values from parent to child like 

 

Change request is "same as" parent.change_request

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY