Traceability

Render a User Story's full acceptance-criteria-to-defect evidence chain in one read

Changed on

Bearer atc:read (or cookie session). Mirrors GET /api/v1/projects/{id}/coverage. One SECURITY DEFINER RPC (bunkai_report_story_traceability) resolves the User Story's Project via its Module (never the nullable user_stories.project_id) and re-checks ACTIVE membership in-band; any role reads, viewers included. No pagination: one story's own chain is small and bounded, and round trips never scale with AC/ATC/Test/Run counts. Archived acceptance criteria and ATCs (including under an archived ancestor Module) are excluded from the chain; an archived STORY itself still renders in full.

get/api/v1/projects/{id}/traceability

Request

  • Base URL: http://localhost:3000
  • URL: http://localhost:3000/api/v1/projects/{id}/traceability
  • Auth: one of:
    • API key in cookie sb-fmbpikzpkafptqximhxn-auth-token
    • HTTP bearer

Path parameters

idstring uuid required

The Project the User Story belongs to. This is a consistency assertion on the URL itself, never the scope parameter: it is checked against the Story's real Project (resolved via module_id, under the caller's own RLS) and a mismatched pair is rejected — see the 404 response below and route.ts.

Query parameters

storystring uuid required

The User Story whose evidence chain to read.

Response

The User Story's evidence chain.

Changes

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • warning

      added the new test_outside_plan_project enum value to the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status

    • info

      removed the test_outside_plan_project enum value from the / response property for the response status