analyze_dependencies
Analyze dependencies for data migration from Jira or Salesforce. Scans users, detects parent-child relationships, and proposes a sequenced migration plan.
Instructions
Phase 3: Analyse migration dependencies before building artifacts.
For Jira: - Scans all referenced users (assignee/reporter), checks if they exist in ServiceNow - Identifies issue type hierarchy (Epic/Story → Task/Bug → Subtask) - Proposes a sequenced migration plan (Tier 1 = parents first, Tier 2 = children, etc.)
For Salesforce: - Counts records per object - Detects parent/child object relationships (e.g. Account → Contact, Account → Case) - Checks record owners (OwnerId) against ServiceNow sys_user - Warns if a parent object is not included in the migration scope - Proposes migration order (parent objects first, child objects after)
Always call this after discover_schema and before build_artifacts. If users are missing, ask the user whether to auto-create them in SN.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | Yes | Source platform (salesforce, jira, or any registered connector) | |
| project_keys | Yes | Jira project keys or Salesforce object names to analyse (e.g. ["EMAL","KAN"] or ["Account","Contact","Case"]) | |
| auto_create_users | No | Create missing SN users automatically |