Can multiple child incident be automatically tagged to parent incidet ?

rajatgon
Tera Contributor

Eg. if have a parent ticket and i see numerous child tickets, can these be automatically merged and tagged to parent ticket without being manually entering parent id on each ticket? this will greatly reduce the manual effort.

Is there a feature set or capability that exist?

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @rajatgon 

 

Yes, you can try it with list view. 

 

AGLearnNGrow_0-1735048211155.png

 

*************************************************************************************************************
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]

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

Runjay Patel
Giga Sage

Hi @rajatgon ,

 

You can do this using background script or fix script with below code.

// Define the sys_id of the parent ticket
var parentSysId = 'PARENT_TICKET_SYS_ID'; // Replace with the actual sys_id of the parent ticket

// Define criteria to identify child tickets
var childTickets = new GlideRecord('incident');
childTickets.addQuery('category', 'network'); // Replace with your own conditions for child tickets
childTickets.addQuery('parent', ''); // Only tickets without a parent
childTickets.query();

var updatedCount = 0;

while (childTickets.next()) {
    childTickets.parent = parentSysId;
    childTickets.update();
    updatedCount++;
}

gs.print('Number of child tickets updated: ' + updatedCount);

 

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

In this video i have explained about Web service integration in ServiceNow like how it works, how we can configure it, what are the prerequisite and many more. I have covered below topics in this video. 1. understand Web Service. Like when and how we will use it. 2. Talked about Inbound and ...

Uncle Rob
Kilo Patron

Are you talking about automatically creating incident_tasks for certain incidents?

Ankur Bawiskar
Tera Patron
Tera Patron

@rajatgon 

Can you explain your business requirement here?

if you don't want to enter parent ticket in those child tickets then you can use 2 ways

1) Update All -> ensure you apply correct filter on list and use Update all button and set the parent

OR

2) use background script and set the parent for those child

what did you start with and where are you stuck?

AnkurBawiskar_0-1735050255662.png

 

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