Fetch Child Incident Details using API

Priyanuj Bortha
Kilo Contributor

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 

2 REPLIES 2

Tony Chatfield1
Kilo Patron

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

Ahmad-Nour
Tera Contributor

https://instance.service-now.com/api/now/table/incident?sysparm_exclude_reference_link=true&sysparm_query=parent_incident.number=your parent number