Skip to main content

PT-677 dashboard current cycle

GET 

/api/cycles/current

PT-677 dashboard current cycle. Returns the single "current" active cycle across every project the caller can read in the active org — the nearest checkpoint (soonest endDate, undated cycles last; ties broken by most-recent startDate, then cycle id ascending) since a cycle is one-active-per-project — plus its burndown, or { "data": null } when no readable project has an active cycle. The data source for the dashboard Current Cycle widget. Unlike the other cycle routes this is NOT project-scoped: it requires FULL tasks.read (a tasks.read.own-only caller is rejected — the cycle burndown is a cycle-wide aggregate with no per-assignee dimension to scope to; like the project-scoped burndown route, a bare tasks.read.own grant is rejected) AND projects.read | projects.read.own plus an active membership; a GUEST / projects.read.own caller is restricted to collaborator/creator projects. Archived (COMPLETED / CANCELLED) projects are excluded.

Request

Responses

Successful response