Scan parent-link integrity

Scans every non-deleted work item in one project and reports parent-link invariant violations: missing or cross-project parents, workstream mismatches, circular references, and max-nesting-depth breaches. Read-only — it never repairs a link; pair with the reparent command to fix findings.

GET/api/v1/work-items/parent-integrity

Authorization

work-items:readapi key scoperequired
Required scope when calling with an API key.

Query parameters

project_idstringrequired
Project ID in the resolved workspace

Example: proj_abc123

Request

curl -X GET "https://www.digitalstack360.com/api/v1/work-items/parent-integrity?project_id=proj_abc123" \
  -H "Authorization: Bearer $DS_API_KEY"

Examples use a placeholder key from your environment. Store your key in $DS_API_KEY — never commit it.

Response

200 OK
{
  "data": [
    {
      "ticket_id": "work_01k2...",
      "ticket_key": "DS-42",
      "project_id": "proj_abc123",
      "parent_ticket_id": "work_01k9...",
      "parent_key": "DS-7",
      "kinds": [
        "workstream_mismatch"
      ]
    }
  ],
  "meta": {
    "count": 1
  }
}

Errors

401
missing_auth

No credentials provided

401
invalid_api_key

API key is invalid or revoked

403
scope_insufficient

Key lacks work-items:read scope

400
invalid_request

project_id is required

404
not_found

Project does not exist in the resolved workspace