Projects
Projects live at Dashboard → Projects: delivery boards with milestones, tasks, updates, and generated status drafts, plus cross-project portfolio views. Project keys look like PRJ-118 and the detail routes accept the key or the numeric id. All calls need a Bearer JWT and an X-Workspace-Id header.
Boards, table, and timeline
The stat strip counts active projects, average progress, and at-risk milestones. The main tabs:
- Boards — drag-drop columns. The stored columns are
doing / queued / blocked; a drop calls the move endpoint and persists immediately. - All projects — searchable table with a team filter, per-project progress bars, and a health dot (red when blocked, amber when health mentions needing approval).
- Timeline — projects sorted by date range with progress bars, plus the at-risk milestone list: undone milestones that are past due or due within 3 days, each with its blocking cards.
- Sprints / Epics / Releases — delivery panels for sprint planning and release tracking against the same projects and issues.
- Portfolio — cross-project health, dependency-aware ordering, and alerts (below).
Project detail
The detail header shows key, name, team, owner, dates, and the overview lede. The progress card pairs the stored progress percent with the health signal and dot. Below that:
- Milestones — named checkpoints with due dates and done checkboxes; add with name + date.
- Tasks — delivery to-dos with due dates and assignees (distinct from CRM follow-up tasks and agent backlog tasks); add with title + due.
- Updates — a chronological thread with a composer; posting bumps the project's updated timestamp.
- Linked — labeled attachments pointing at other records (entity type + key + label).
- Status drafts — one click generates a status paragraph from live milestones, open issues (P0/P1 called out by key), and progress, with citations to the underlying records. Drafts are kept as a trail.
Deleting a project removes its milestones, tasks, updates, and links; its issues keep their history but detach (project_id set to null).
Portfolio: health, gantt, dependencies
The portfolio API computes cross-project views from live rows — nothing is cached:
- Health — per project: total/open issues, blocked count (open P0/P1), overdue milestones + tasks, stored health text, and the dot.
- Gantt — tasks with dependency-aware ordering.
earliest_startis the task's depth in the dependency graph (0 = nothing blocks it); each row also reports whether it is blocked and by which unfinished tasks. - Dependencies — explicit task→task edges, including cross-project ones (flagged in the response). A task cannot depend on itself, and both ends must exist in your workspace.
- Dependency alerts — unfinished tasks whose blockers are still undone, recomputed on every call.
API pointers
| Method | Path | What it does |
|---|---|---|
| GET | /api/projects | List with col / team / search filters; returns projects + total |
| POST | /api/projects | Create (mints the PRJ-nnn key) |
| GET | /api/projects/stats/summary | Counts by column |
| GET | /api/projects/{ref} | Full detail: milestones, tasks, updates, linked issues, links |
| PATCH | /api/projects/{ref} | Partial update |
| POST | /api/projects/{ref}/move | Board drag-drop column change |
| DELETE | /api/projects/{ref} | Delete; issues detach, children cascade |
| GET | /api/projects/{ref}/milestones | Milestone list with total |
| POST | /api/projects/{ref}/milestones | Add a milestone |
| PATCH | /api/projects/{ref}/milestones/{m_id} | Rename, redate, or check off |
| GET | /api/projects/{ref}/tasks | Task list with total |
| POST | /api/projects/{ref}/tasks | Add a task |
| PATCH | /api/projects/{ref}/tasks/{t_id} | Edit or check off a task |
| GET | /api/projects/{ref}/updates | Update thread with total |
| POST | /api/projects/{ref}/updates | Post an update |
| GET | /api/projects/{ref}/links | List linked records |
| POST | /api/projects/{ref}/links | Attach a link (entity_type + entity_key + label) |
| DELETE | /api/projects/{ref}/links/{link_id} | Remove a link |
| GET | /api/portfolios/health | Per-project rollup: open/blocked/overdue + dot |
| GET | /api/portfolios/gantt | Dep-aware task ordering; optional project_id filter |
| GET | /api/portfolios/milestones/at-risk | Past-due or due-in-3-days milestones + blocking cards |
| GET | /api/portfolios/deps | List task dependencies; task_id / project_id filters |
| POST | /api/portfolios/deps | Create a task→task edge (409 on duplicate) |
| DELETE | /api/portfolios/deps/{dep_id} | Remove an edge |
| GET | /api/portfolios/alerts/dependencies | Tasks blocked by unfinished work |
| POST | /api/portfolios/projects/{id}/status/draft | Generate + keep a cited status draft |
| GET | /api/portfolios/projects/{id}/status/drafts | Draft history, newest first |
Work items themselves are tracked in Issues; the project detail's linked-issues panel is the bridge between the two.