Skip to navigation

Set what a task waits on

Beta

Say which tasks must be done before this one: the whole list, by asset id or by number (T-12). The task is not ready, and cannot be claimed, while one of them is still open. Each must be a task of the same workspace the caller can open, never the task itself and never one that already waits on it; at most 50. A task it already waits on that the caller cannot open stays. Needs edit access.

Authentication

X-API-KEYstring
API Key authentication via header

Path parameters

asset_idstringRequired
The task's asset id.

Headers

X-Athena-Session-CredentialstringOptional

Request

This endpoint expects an object.
blocked_bylist of stringsRequired

The tasks that must be done before this one, each by its asset id or its number in the task’s workspace (T-12). It replaces the list (an empty list clears it), but a task it waits on that the caller cannot open stays. Each must be a task of the same workspace the caller can open, never the task itself or one that already waits on it; at most 50.

Response

The task, with what it now waits on.
assigneeobject or null
Who it is for, or null for nobody.
blocked_bylist of strings

The ids of the tasks that must be done before this one: those the caller can open.

can_editboolean or null

Whether the caller may change it; null in a list.

claimobject or null

Who is working on it now; null when nobody is, and once the lease ran out.

completed_atdatetime or null
When it was marked done.
completed_by_refstring or null
Who marked it done.
completion_notestring or null
What the work produced, left when it was marked done.
completion_reasonenum or null

Why it is done (completed or not_planned); null while open.

Allowed values:
created_atdatetime or null
created_bystring or null
The user who created it.
descriptionstring or null
Markdown.
due_datestring or null

YYYY-MM-DD, or null.

due_timestring or null

HH:MM (24-hour), or null.

due_time_zonestring or null

The IANA time zone of due_time.

external_refslist of objects

The items kept elsewhere it is linked to (a pull request, an issue, a thread), each with what its system last said.

hidden_blockersinteger
How many more tasks it waits on that the caller can't open.
holdobject or null

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.

idstring
The task's asset id.
is_archivedboolean
Whether it is in the trash.
is_blockedboolean
Whether a task it waits on is still open, counting the ones the caller can't open.
is_readyboolean

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.

labelslist of objects
numberinteger or null

Its number in its workspace (1, 2, 3, …), shown as T-<n>; null for a task written before tasks were numbered.

parentobject or null

The task it is a sub-task of, read through that task’s own gate; null when it is no sub-task.

priorityenum
Allowed values:
statusenum
Allowed values:
subtask_progressobject

How many of its sub-tasks the caller can open are done, of how many.

titlestring
updated_atdatetime or null
workspace_idstring

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
503
Service Unavailable Error