Count the open bugs across a whole workspace, broken down by severity
Changed onBearer atc:read (or cookie session) — the response is a workspace-wide defect posture, the same class of workspace inventory the sibling Home reads (/recent-projects, /active-runs) are gated on. OPEN means UNRESOLVED: bugs.status in ('open', 'in_progress'), the two states before a fix exists; resolved and closed are excluded. The counted statuses are echoed back as open_statuses so the definition travels with the numbers. Bugs filed against an ARCHIVED module are excluded, the same rule the bug lists and the defect heatmap apply, so this figure never claims defects a caller cannot enumerate. open_count is the sum of by_severity by construction, never an independent count, so the total always reconciles with the breakdown. Runs entirely under the caller's own RLS, so a foreign, nonexistent, or lost-membership workspace id returns the SAME zeroed 200 a workspace with no open bugs does — never an existence echo. A read that FAILS answers 500, never zeroes.
Request
- Base URL: http://localhost:3000
- URL: http://localhost:3000/api/v1/workspaces/{id}/open-bugs
- Auth: one of:
- API key in cookie sb-fmbpikzpkafptqximhxn-auth-token
- HTTP bearer
Path parameters
Response
The workspace's open-bug count and its severity breakdown (possibly all zero).
Changes
- warning
added the new
test_outside_plan_projectenum value to the/response property for the response status - warning
added the new
test_outside_plan_projectenum value to the/response property for the response status - warning
added the new
test_outside_plan_projectenum value to the/response property for the response status - warning
added the new
test_outside_plan_projectenum value to the/response property for the response status
- warning
- info
removed the
test_outside_plan_projectenum value from the/response property for the response status - info
removed the
test_outside_plan_projectenum value from the/response property for the response status - info
removed the
test_outside_plan_projectenum value from the/response property for the response status - info
removed the
test_outside_plan_projectenum value from the/response property for the response status
- info