Skip to main content

Module fields

Module fields 

Source
Expand description

A task’s priority and labels (C0 2.2 E47): the order of work on a board.

  • Priority is high or normal (absent on the wire means normal); labels are at most 16 unique [a-z0-9-]{1,32}. A wrong value is refused here, before any request.
  • A write is a PATCH at the task’s fields_version. When another write came first (409 stale_base) the task is read again and the write is sent once more at the new version; a second conflict is shown.
  • Lists show high before normal, then by number.

Structs§

FieldsChange
What a priority or labels write changes; None keeps the field.

Functions§

parse_labels
Labels from a,b,c (spaces around a label are dropped, an empty value is no labels), validated as Cloud validates them.
parse_priority
high or normal, exactly; anything else is refused with what is allowed.
priority_word
The wire word of a priority (normal when absent).
rank
0 for high, 1 for normal (and absent).
set_fields
Set task number’s priority and/or labels in the project’s vault.
sort_by_priority
The board order: high first, then by number.