Skip to content

Tasks

A task is a list item with a checkbox. The character in the checkbox is its state. A task can repeat on a schedule or a set time after each completion.

- [x] Draft the station contract
- [/] Survey the pier sites [owner:: @mara]
- [?] Get a quote for solar roofs
- [-] Printed leaflets
- [ ] Check the dock batteries [repeat:: every monday]
Checkbox State
[ ] to do
[/] in progress
[x] done ([X] is read as done too)
[-] cancelled
[?] waiting or blocked
  • Only list items have a checkbox. A heading or a requirement cannot have one; a heading can still be a task with type:: task, and then its state comes from the tasks below it.
  • A parent’s state is rolled up from the tasks below it: done when all are done, in progress when any is in progress or done, cancelled when all are cancelled, to do otherwise. Cancelled tasks do not count.
  • Cancelled tasks are left out of roll-up dates and progress, of the critical path and of people’s load, and are never late.

Other properties a task often has are due::, owner::, priority:: (4 urgent … 1 someday), progress:: and covers::; see Known keys.

A task with repeat:: repeats. It stays open ([ ]); ticking it records the completion instead of closing it.

- [ ] Clean the docks [repeat:: every monday]
- [ ] Rotate spare bikes [repeat:: every 2 weeks when done]
last:: 2027-03-08
- [ ] Pay the electricity bill [repeat:: every month on the 1st]
due:: 2027-04-01

repeat:: takes one of:

  • a Markwhen recurrence: every monday, every 2 weeks, every weekday, every month on the 1st, every year, every day for 5 times, every 2 weeks until 2027-06-01;
  • a raw RFC 5545 RRULE: FREQ=MONTHLY;BYDAY=1MO (an RRULE: prefix is allowed, DTSTART is not).

A rule repeats on schedule. Add the suffix when done to count from the last completion instead: every 2 weeks when done. A rule that cannot be read is a bad-value error.

Ticking a repeating task (in a view, or with an agent edit):

  • keeps the line [ ],
  • writes last:: <today>,
  • and, if the task has due::, moves it to the next occurrence.

The history of completions is the file’s git history. The exact rule for the new due::, and what happens when a rule has ended, is described in How Facet writes.

Views show a repeating task at its next occurrence:

  1. its due::, when it has one;
  2. else, for a when done rule, last:: plus the interval;
  3. else the next scheduled occurrence after last::, counted from start:: when the task has one;
  4. a repeating task that was never done (no last::) is due today.

A plain when done interval is calendar arithmetic like duration::: one month after 31 January is the last day of February. Other rules follow RFC 5545, where days that do not exist are skipped: a monthly rule on the 31st skips months without a 31st.

  • They have no bar in the Gantt: their next occurrence is shown instead.
  • An after:: cannot point at them (bad-after-target), since they have no dates to come after.
  • They are never late and never count as a person’s load.