Tasks¶
Tasks are the rows on the board. Every write keeps the task's
flow line step and its legacy status in step, and every move to another step
lands in the activity log. Source: services/tasks/tasks.jac.
Reading¶
ListTasks¶
One page of tasks. scope picks the working set the board renders
("working": open plus Done reached in the last done_days), the history
behind its "+N older" ("older": Done before that cutoff, newest first),
every Done task ("done"), what the Overview calls needs-attention
(blocked first, then most overdue) ("attention"), or everything ("all").
A history scope with no title search or tag filter pages in the store
(services/tasks/history.jac): scope, filters and sort become the query,
so a page loads its own rows. The live scopes, and a search or tag
filter, page their loaded pool. older on an unfiltered working page
counts the Done rows the cutoff left out, from the project tallies. Every
ordering ends in the jid so two rows that tie on the sort key cannot
swap between one page and the next.
| Body field | Type | Default | Description |
|---|---|---|---|
scope |
str |
"working" |
|
q |
str |
"" |
|
project_id |
str |
"" |
|
assignee_id |
str |
"" |
|
category |
str |
"" |
|
tag |
str |
"" |
A tag the task must carry; "estimated" is "" (any), "yes" (has an estimate) or "no" (unestimated). |
estimated |
str |
"" |
|
priority |
str |
"" |
A priority, and a board column (a step jid, or a status when the workspace has no flow line), each "" for any. |
column |
str |
"" |
|
sort |
str |
"" |
The table view's column sort; empty keeps the scope's own order. |
sort_dir |
str |
"asc" |
|
done_days |
int |
7 |
|
page |
int |
1 |
|
page_size |
int |
0 |
Reports one TaskPage: page_size defaults to 50 and is
capped at 500. The command palette's search, the assistant, the Overview and
the board's older Done history read it.
scope |
Rows | Order |
|---|---|---|
working (default) |
Open tasks plus Done tasks that reached Done in the last done_days |
Board order (sort_order) |
older |
Done tasks that reached Done before that cutoff | Newest update first |
done |
Every Done task | Newest update first |
attention |
Open tasks that are Blocked or past due | Blocked first, then soonest due date |
all |
Everything | Board order |
qmatches titles case-insensitively, ranked exact match, then prefix, then anywhere (newest update breaks ties).prioritykeeps one priority.columnkeeps one board step group: a step jid, or a status when the workspace has no flow line. It places tasks by the board's rule, so a task with no current step counts in the first step of its status's kind. An unknown value matches nothing.sort(title,priority,step,category,estimate,due,created,updated) withsort_dir(asc/desc) overrides the scope's order.stepfollows the board: step order (canvasx, thensort_order, with the same placement fallbacks), then board order within a step.olderis only filled on an unfilteredworkingpage: it counts the Done rows the cutoff left out (the Done tally less the rows the page kept), so a view can say how many it is not showing without a second call. Any filter,project_idandassignee_idincluded, reports 0.scope_totalis the scope's count with no filter on (whattotalwould be on an unfiltered page), on every page, so a filtered view can say "12 of 210" without a second call. It is the pool's size when the page loaded the whole scope; under aproject_idorcategoryfilter it is a tally (done,all,older) or one more pushed read of the live scope.- The scope and a
categoryfilter run in the store's query, so a working page loads the working set alone. Anolder,doneorallpage is answered in the store for everysortand every filter exceptqandtag: it loads its own rows, andtotalcomes from the tallies. Under a filter the total counts the matching rows, which the runtime still reads to count (jaseci-labs/jac#9416), so a narrow filter is cheap and a broad one costs its matches. A search or atagfilter loads the history the page is taken from, since the store cannot match part of a title or one item of a list (jaseci-labs/jac#9413). - A foreign or unknown
project_idorassignee_idmatches nothing.
curl -X POST $BASE/walker/ListTasks -H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"scope": "all", "q": "migration", "page_size": 20}'
[
{
"rows": [
{
"id": "<task-id>", "title": "Write the migration plan", "category": "Docs",
"priority": "High", "status": "In Progress", "step_id": "<step-id>",
"due_date": "2026-09-18", "assignee_ids": ["<member-id>"],
"assignee_names": ["Priya Raman"], "project_id": "<project-id>",
"project_name": "Docs site", "tags": ["q3"], "estimate": 3.0,
"start_date": "2026-09-15",
"note_lead": "Rollback first, then the schema.", "checklist_done": 1, "checklist_total": 3,
"gh_repo": "", "gh_issue_number": 0, "pr_state": ""
}
],
"page": 1, "page_size": 20, "has_more": false, "total": 1, "older": 0
}
]
The row above is trimmed; see TaskRow for every field.
A list row carries no notes and no checklist items: the note's first line
(note_lead, at most 200 characters) and the checklist counts ride instead,
and GetTask has the rest.
GetTask¶
One task by jid, owner-checked by find_task: the full TaskView, which is what the task sheet loads when it opens (a list row carries no notes or checklist items), and a deep link to a card the board's working set does not hold (older history, a search hit).
| Body field | Type | Default | Description |
|---|---|---|---|
task_id |
str |
"" |
from find_task |
The task in full: what the task sheet loads when it opens, and a deep link to a task the board's working set does not hold (older history or a search hit).
Reports one TaskView, every TaskRow field plus
notes, the checklist items and the GitHub-only fields (gh_assignees,
gh_synced_at, pr_review_state), or nothing for an unknown or foreign id.
ListTaskTitles¶
The working set as id and title only, for the assistant's citations:
the rows and order of ListTasks(scope="working"), at most limit (capped
at 500), with nothing else on the wire.
| Body field | Type | Default |
|---|---|---|
done_days |
int |
7 |
limit |
int |
500 |
The assistant's citation lookup: the working set as id and title only.
Reports one list of TaskTitle: the rows and order of
ListTasks(scope="working") for the same done_days, at most limit (capped
at 500).
TaskCounts¶
The Overview's numbers over the whole history: open tasks, Done per
week for the four weeks ending in monday's week (from the weekly
counts), and total/done per project (from the tallies).
| Body field | Type | Default |
|---|---|---|
monday |
str |
"" |
Reports one TaskTotals over the whole history: open,
overdue and blocked counts, Done per week for the four weeks ending in
monday's week (oldest first), moves to Done on each day of that week
(done_by_day, Monday first; a task created already Done is not counted),
per-project and per-member tallies, and every category in use. An empty monday means this week. Done per week is the sum
of the projects' weekly counts (the ones TaskHistory reads),
and each project's total and done are the tallies it keeps on write, so
only the open tasks and this week's Done (for each member's done_in_week)
are loaded. categories is the list the projects' box keeps.
TaskHistory¶
The Overview's charts over time: for the weeks weeks ending in
monday's week, tasks added and moved to Done per week plus running
scope and done totals. project_id narrows it to that project. It reads
the projects' weekly counts, kept on write; what came before the window
is the tallies less the window. A task created already Done counts
nowhere.
| Body field | Type | Default |
|---|---|---|
project_id |
str |
"" |
monday |
str |
"" |
weeks |
int |
12 |
The Overview's charts over time.
Reports one WeeklyHistory: for weeks weeks
(clamped to 4..52) ending in monday's week, oldest first, the Monday of each
week, tasks added and finished that week, and running scope and done
totals at each week's end (tasks from before the window seed the totals).
project_id narrows it to one project; a foreign id reports empty history.
It reads each project's weekly counts, kept on every task write, so it costs
the same whatever the window; a project's first call fills them from one
full load, once. An empty monday means this week. What came before the
window is the project tallies less the window's counts.
What counts as finished
A task's done day is done_at, the moment it last entered Done (older rows
fall back to updated_at). A task created already Done, such as a
closed issue filed by a GitHub back-fill, is history rather than
throughput and counts nowhere. TaskCounts and the assistant's snapshot
use the same rule, so every Done number agrees.
Writing¶
CreateTask¶
| Body field | Type | Default |
|---|---|---|
title |
str |
required |
category |
str |
"" |
tags |
list[str] |
[] |
estimate |
float |
0.0 |
priority |
str |
"Medium" |
status |
str |
"Backlog" |
step_id |
str |
"" |
due_date |
str |
"" |
start_date |
str |
"" |
notes |
str |
"" |
issue_link |
str |
"" |
assignee_ids |
list[str] |
[] |
project_id |
str |
"" |
Reports the new TaskView.
No-op when the title is blank, or project_id is empty, unknown, foreign or
archived. Every task needs a project.
- With a valid
step_id, the task goes on that step andstatusis set from the step's kind; otherwisestatus(defaultBacklog) is used with no step. start_dateis stored as an ISO day (or"").- The task is appended to the end of its step.
- Assignees that are not owned members are skipped.
- Logs
Added to <step>: the step's name, or the status with no flow line.
curl -X POST $BASE/walker/CreateTask -H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"title": "Write the migration plan", "project_id": "<project-id>",
"priority": "High", "step_id": "<step-id>", "assignee_ids": ["<member-id>"],
"due_date": "2026-09-18", "start_date": "2026-09-15",
"tags": ["q3"], "estimate": 3}'
UpdateTask¶
| Body field | Type | Default | Description |
|---|---|---|---|
task_id |
str |
"" |
from find_task |
title |
str |
"" |
|
category |
str |
"" |
|
tags |
list[str] |
[] |
|
estimate |
float |
0.0 |
|
priority |
str |
"" |
|
status |
str |
"" |
|
step_id |
str |
"" |
|
due_date |
str |
"" |
|
start_date |
str |
"" |
|
notes |
str |
"" |
|
issue_link |
str |
"" |
|
pr_link |
str |
"" |
|
reviewer_id |
str |
"" |
|
review_due |
str |
"" |
|
assignee_ids |
list[str] |
[] |
|
project_id |
str |
"" |
The task sheet's save. It replaces every editable field, so send the full
form, not a patch: a caller that omits start_date clears it. The checklist is the exception; only the checklist walkers
write it.
Reports the updated TaskView.
- A valid
step_idsets the step and the mapped status; an invalid one keeps the current step and usesstatusas given. assignee_idsreplaces all assignees. Areviewer_idthat is not an owned member clears the reviewer.- A different owned
project_idmoves the task to that project; an empty or foreign one leaves it where it is. - A status change logs
Moved to <status>. A change that crosses Done keeps a linked GitHub issue in step on repos withauto_closeon: landing on Done closes it, leaving Done reopens it.
MoveTask¶
The drag-drop / arrow-move endpoint. Server-authoritative: a move
appends to the end of the target column, unless before_id/after_id
asks for the spot beside that card there (a stale anchor appends). A
positioned drop in the card's own column is a pure reorder: no status
write, no hand-off, no log row, no updated_at bump. step_id is the
flow line column and its mapped status is written too; without it, the
legacy status-only move.
| Body field | Type | Default | Description |
|---|---|---|---|
task_id |
str |
"" |
from find_task |
status |
str |
"" |
|
step_id |
str |
"" |
|
before_id |
str |
"" |
|
after_id |
str |
"" |
The endpoint behind the board's Move menu, a drag onto a step group and the M key. The server decides where the task lands.
Reports the moved TaskView.
No-op when step_id is set but is not an owned step.
- With
step_id, the task moves onto that step and gets its mapped status, and the log names the step. Without it, a legacy status-only move clears the task's step. before_idorafter_idplaces the task beside that task in the target step; a stale anchor appends to the end.- A positioned drop in the task's own step is a pure reorder: no status
write, no handoff, no log entry, no
updated_atbump. - Moving onto a different step whose owner role has exactly one holder on the task's project hands the task to that person.
- Crossing Done keeps a linked issue in step on
auto_closerepos: landing closes it (· closed org/repo #12on the log line), leaving reopens it (· reopened org/repo #12).
curl -X POST $BASE/walker/MoveTask -H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"task_id": "<task-id>", "step_id": "<review-step-id>", "before_id": "<anchor-task-id>"}'
SetMoveInfo¶
The move handoff, all fields optional. Review gets a reviewer, an ETA and a PR link; Blocked and Changes Requested get a note. Partial by design; anything left empty stays untouched.
| Body field | Type | Default | Description |
|---|---|---|---|
task_id |
str |
"" |
from find_task |
reviewer_id |
str |
"" |
|
review_due |
str |
"" |
|
pr_link |
str |
"" |
|
note |
str |
"" |
The optional details a move to a handoff or blocked step asks for. Partial by design: anything empty stays untouched.
Reports the updated TaskView.
noteis prepended to the task's notes as**YYYY-MM-DD:** note, so a blocked task's excerpt leads with the reason; resubmitting the same line is a no-op.- The same day's move entry in the log is patched with the new links and note.
DeleteTask¶
| Body field | Type | Default | Description |
|---|---|---|---|
task_id |
str |
"" |
from find_task |
Reports {"deleted": "<task id>"}. Nothing is written to the log.
Checklist¶
A task's checklist is a list of {"id", "text", "done"} items in display
order, stored on the task itself. Each change is applied at once by its own
walker and none of them touch the other task fields, so a sheet save cannot
clobber a checklist and a checklist edit cannot clobber the form. Every one
reports the task's TaskView, changed or not, and nothing
for an unknown or foreign task_id.
AddChecklistItem¶
Append one item to the task's checklist. Blank text or a full list (CHECKLIST_MAX) adds nothing; the task view is reported either way.
| Body field | Type | Default | Description |
|---|---|---|---|
task_id |
str |
"" |
from find_task |
text |
str |
"" |
Appends an item with a new id. Text is trimmed and capped at 200 characters; blank text, or a checklist already holding 50 items, adds nothing.
SetChecklistItem¶
Check, uncheck or rename one item: done is "yes", "no" or "" to leave
it, text renames when not blank. Checking an item off writes a log
line with the progress; nothing else does.
| Body field | Type | Default | Description |
|---|---|---|---|
task_id |
str |
"" |
from find_task |
item_id |
str |
"" |
|
done |
str |
"" |
|
text |
str |
"" |
done is "yes", "no" or "" (leave it); a non-blank text renames the
item. Checking an item off writes a log entry with the progress, such as
Checked off: Draft the rollback steps (2/5). Unchecking and renaming do not.
curl -X POST $BASE/walker/SetChecklistItem -H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"task_id": "<task-id>", "item_id": "3f9c1a2b7d4e", "done": "yes"}'
RemoveChecklistItem¶
Drop one item from the task's checklist; an unknown id removes nothing.
| Body field | Type | Default | Description |
|---|---|---|---|
task_id |
str |
"" |
from find_task |
item_id |
str |
"" |
Drops the item with that id; an unknown id removes nothing.
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_task¶
Lookup base: resolve the jid once, verify org parentage, then visit. Every task mutation subclasses this, jobj resolution alone is NOT authorization.
| Field | Type | Default |
|---|---|---|
task_id |
str |
"" |