Claim a task
Take a task as the caller’s to work on now, for a lease (30 minutes unless lease_minutes says otherwise, from 1 minute to 24 hours), or renew a claim the caller already holds. Needs edit access. Refused while the task is done, held for a person, assigned to someone else, waiting on an open task, or claimed by someone else. With a worker’s name the claim is that worker’s: another worker of the same caller is refused it while it is live. A claim lapses when its lease runs out: renew it by claiming again while you work. Claiming grants nothing.
Authentication
Path parameters
Headers
Request
How long the claim holds, in minutes (30 when left out).
Your own name for the worker that is calling (1 to 64 letters, digits, -, _ or .), for when several workers share one API key. A claim made with a name is that worker’s: another worker of the same caller is refused the task while the claim is live, and only the same name renews it or gives it back. Left out, the call is the caller’s own, as from the app. The name is yours to choose and grants nothing.
Response
The ids of the tasks that must be done before this one: those the caller can open.
Whether the caller may change it; null in a list.
Who is working on it now; null when nobody is, and once the lease ran out.
Why it is done (completed or not_planned); null while open.
YYYY-MM-DD, or null.
HH:MM (24-hour), or null.
The IANA time zone of due_time.
The items kept elsewhere it is linked to (a pull request, an issue, a thread), each with what its system last said.
Why it waits on a person; null when it doesn’t. A held task is not ready and can’t be claimed until the hold is lifted.
Whether it can be worked on now: open, not in the trash, nobody working on it, not held for a person and waiting on no open task. It says nothing of who may take it: a task assigned to someone is theirs alone to claim.
Its number in its workspace (1, 2, 3, …), shown as T-<n>; null for a task written before tasks were numbered.
The task it is a sub-task of, read through that task’s own gate; null when it is no sub-task.
How many of its sub-tasks the caller can open are done, of how many.
