Can multiple child incident be automatically tagged to parent incidet ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-23-2024 06:35 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-24-2024 05:50 AM
Hi @rajatgon
Yes, you can try it with list view.
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-24-2024 06:04 AM
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
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-24-2024 06:05 AM
Are you talking about automatically creating incident_tasks for certain incidents?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-24-2024 06:24 AM
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?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader