Skip to content

Projects

Projects group tasks and repos. Every task lives under exactly one project, so a workspace needs a project before it can create work. Source: services/projects/projects.jac.

ListProjects

POST/walker/ListProjectsBearer JWTreports list[Project]services/projects/projects.jac:30

Body field: none.

Reports one list of raw Project nodes sorted by name, archived projects included. A workspace with no projects reports [] and creates nothing.

data.reports
[
  [
    { "_jac_id": "<project-id>", "name": "Docs site", "description": "", "active": true },
    { "_jac_id": "<project-id-2>", "name": "Mobile app", "description": "iOS first", "active": false }
  ]
]

SaveProject

POST/walker/SaveProjectBearer JWTreports Projectservices/projects/projects.jac:60

Empty project_id creates in the box; otherwise updates the addressed Project.

Body field Type Default
project_id str ""
name str ""
description str ""

An empty project_id creates a project; otherwise the addressed project is updated.

Reports the saved Project node. No-op when the name is blank after trimming, or project_id is set but unknown or foreign (it never falls back to creating). Notes saving never changes active, so it does not un-archive, and names are not required to be unique.

curl -X POST $BASE/walker/SaveProject -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Docs site", "description": "The public docs"}'

ArchiveProject

POST/walker/ArchiveProjectBearer JWTextends find_projectservices/projects/projects.jac:104

active=False, tasks and history keep pointing at it.

Body field Type Default Description
project_id str "" from find_project

Reports {"archived": "<project id>"}. Side effects sets active = false and nothing else: tasks, repo links and members' project assignments stay. An archived project refuses new tasks (CreateTask) and new repos (AddRepo); its existing tasks still show on the board. No walker un-archives.

AssignToProject

POST/walker/AssignToProjectBearer JWTservices/projects/projects.jac:113
Body field Type Default
member_id str required
project_id str required

Puts a roster member on a project (a Member -OnProject-> Project edge).

Reports {"assigned": true}, also when the member was already on it. No-op when either id is not an owned member or project. Why it matters a step's owner role hands a card only to a member who holds the role and is on the task's project. See Handoffs follow roles.

UnassignFromProject

POST/walker/UnassignFromProjectBearer JWTservices/projects/projects.jac:141
Body field Type Default
member_id str required
project_id str required

Reports {"unassigned": true}, even when there was no assignment. No-op when either id is not an owned member or project.

Lookup base

The base the jid-addressed walkers above extend: it resolves the id, checks ownership and only then visits. It is not an HTTP endpoint.

find_project

Lookup base: resolve the jid once, verify org parentage, then visit. Resolution is NOT authorization.

Field Type Default
project_id str ""