find_related_cis
Retrieve configuration items (CIs) related to a specified CI by relationship type, with direction filters and pagination.
Instructions
Find CIs related to a given CI by a specific relationship type.
Filters relationships to only those matching the specified type. The rel_type can be a sys_id or a relationship type name (e.g., "Runs on::Runs"). If a name is provided, it is resolved to a sys_id first.
Args: ci_sys_id: The sys_id of the CI to find related CIs for. rel_type: Relationship type — either a sys_id or a name like "Runs on::Runs". direction: "upstream", "downstream", or "both". Defaults to "both". limit: Maximum results to return (1-1000, default 25). offset: Pagination offset.
Returns: JSON object with "ci_sys_id", "rel_type", "direction", "count", and "relationships" list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ci_sys_id | Yes | ||
| rel_type | Yes | ||
| direction | No | both | |
| limit | No | ||
| offset | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |