AlmondTill/G3N API

Task

object type

The CsCase chassis reused: caption required (the subject line) + its OWN description field (≤8192 — the task's brief; the conversation is the generic Note thread at note#<taskId>, addNote/notes). priority ∈ {low, normal, high, urgent} (its OWN canned registry — kit-stamped 'normal' when unnamed). createdBy is server-stamped (immutable); reportTo names WHO the work reports to. Assignment is multi: assigneeUserIds ≤8 + teamIds ≤4 (in-tenant + active at set) — each holds a write-once taskbook inbox row while the task lives (terminal transitions remove user/team rows in the same txn: the inbox self-prunes, bounded by open work). labelIds ≤16 (TaskLabel — the work vocabulary). constructRefs ≤16 {type,id} bind live domain constructs ref-only (the CsCase @375 law: validated in-tenant + non-doomed at write, NO doom arms grow, a purged target renders as a tombstone; each holds a taskbook#REF row while the task is non-doomed — the tasksByConstruct lane). dueAt: overdue = computed at read (dueAt < now ∧ live; + the dueBefore filter) — NO sweep lane in v1. 'blocked' is deliberately NOT a state — it is a label (no machine consequence in v1). Searchable by caption. The ops event domain (at.ops.task.* — the facility→ops neighborhood).

Fields

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The human-readable id, shaped like TK-… — stable for the record’s life.
typeString String!The kind of record — always Task here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of open, in_progress, postponed, completed or cancelled.
parentIdID ID!The parent org group; for a Task parentId === rootId.
rootIdID ID!The id of your organization group — every record of yours carries the same one.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID ID!The id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten.
refCaptionsRefCaption [RefCaption!]!The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption.
descriptionStringThe task's own brief. Absent = caption-only.
priorityString String!low | normal | high | urgent — kit-stamped 'normal' when the caller names none (its OWN registry — the CS shape, deliberately not shared).
createdByIDWHO opened the task — server-stamped from the acting principal; immutable. Null exactly when systemOrigin is set.
systemOriginStringWhich platform lane minted the task when NO human did. Never caller-suppliable — absent from create/edit inputs by law; immutable at birth; null on every human-created task.
reportToIDWHO the work reports to — an User (in-tenant + active at set); the notification lane = the deferral.
assigneeUserIdsID [ID!]!The assigned workers.
teamIdsID [ID!]!The assigned Teams (≤4, distinct; in-tenant + active at set; each holds a taskbook#team inbox row while the task lives).
labelIdsID [ID!]!The work labels (≤16, distinct; in-tenant + active TaskLabels at set).
dueAtStringThe expected-completion instant (ISO-8601) — overdue is computed at read (dueAt < now ∧ live), never stored.
overdueBoolean Boolean!Computed at read via the ONE isTaskOverdue home.
constructRefsTaskConstructRef [TaskConstructRef!]!The bound domain constructs (≤16, distinct by (type,id) — ref-only per the CsCase @375 law: no doom arms grow; a purged target renders as a tombstone).
linkedFromTaskIdIDThe completed task this one reopens. Immutable at birth; the reopen provenance edge.
returnAtStringThe boomerang instant: while status=postponed the scheduled-due sweep fires postponed→open AT this instant (re-minting the user/team inbox rows); after the return it stays as honest history (the armed law reads status). Never on the edit face; a re-park restamps it.
originNoteIdIDServer-stamped, immutable, all-three-or-none with the anchor pair; null on hand-created tasks.
originAnchorTypeStringThe origin note's annotated construct type (the /comments face's anchor — the come-back link is /comments/<originAnchorType>/<originAnchorId>).
originAnchorIdIDThe origin note's annotated construct id (the polymorphic arm — the sibling names the type; the ApprovalRequest targetType precedent).

Used by