Fetch Child Incident Details using API
This content was last updated in 2022. It may still be useful, but could contain outdated information. Please confirm its accuracy before relying on it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2022 06:07 PM
Hello,
I need to fetch Child Incident details of a Parent Incident using ServiceNow API. I'll have the ticket number of the Incident, using which I need to gather information on all the Child Incidents related to the Parent.
Kindly let me know what to do.
Thanks,
Priyanuj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2022 10:43 PM
Hi, you should simply need to run a query/filter against the 'parent_incident' field.
Using REST API explorer in a PDI you should be able to test\validate this using example data.
sysparm_query = parent_incident.number=INC0007001
This will return INC0007002 as INC0007001 is the parent_incident
/nav_to.do?uri=incident.do?sys_id=ff4c21c4735123002728660c4cf6a758
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2022 10:47 PM
https://instance.service-now.com/api/now/table/incident?sysparm_exclude_reference_link=true&sysparm_query=parent_incident.number=your parent number