Skip to content

Nodes and properties

Inside a file, every heading and every list item is a node. Nesting gives the tree: a heading contains the headings below it of a deeper level and the lists under it, and an indented list item is a child of the item above it. Each node gets a type from the way it is written, and carries properties written as key:: value.

# Bike-share pilot
## Stations
- [ ] Choose station sites [id:: sites] [due:: 2027-03-01]
- [ ] Install batch 1
after:: !sites
duration:: 2 weeks
owner:: @mara
Batch 1 covers the four stations closest to the ferry.
- Pilot opens [type:: milestone] [after:: !sites + 6 weeks]
- Ask the port authority about night lighting.

Here Stations is a group, the two checkbox items are tasks, Pilot opens is a milestone and the last item is a note. The paragraph under Install batch 1 is that task’s description.

  • Every heading (# to ######, or a setext heading underlined with === or ---) and every list item is a node.
  • Heading levels and list indentation give parent and child. A list under a heading is that heading’s children.
  • List items can use any Markdown marker: -, *, +, 1. or 1).
  • The first # heading is the title of the file node itself, see Files.
  • Paragraphs, quotes, tables and code blocks are the description of the node directly above them.
  • Code blocks are never read for nodes, and !id or req~name inside them is plain text.

A node’s type is inferred from its form. A type:: property overrides it.

Form Type
# … ###### heading group (a phase, a section)
- [ ] … checkbox item task
- req~name: … requirement
item with start::, end:: or due::, no checkbox event or milestone
any other list item note
the file / a folder file / folder
  • An item without a checkbox that has due:: and none of start::, end:: or duration:: is a milestone. With start:: or end:: (or due:: with duration::) it is an event.
  • An item with only duration:: and no checkbox stays a note: give it a checkbox or type:: to schedule it.
  • type:: takes one of task, group, requirement, event, milestone, note. Any other value is a bad-value error and the inferred type stays. The file and folder types cannot be set.
  • A type: in a file’s frontmatter is a free label for the file and does not change any type, see Frontmatter.

A milestone is any node with type:: milestone, or an item without a checkbox that has due:: and no start::, end:: or duration::.

  • It has zero length. Where it sits is described in Dates and scheduling.
  • A checkbox item may be type:: milestone; done means reached.
- Contract signed [due:: 2027-02-15]
- [ ] Safety audit passed [type:: milestone] [after:: !audit]

A property is written key:: value. There are two placements with the same meaning, and one item may mix them freely.

Inline, in square brackets at the end of the title line:

- [ ] Order docks [id:: docks] [due:: 2027-03-01]

Below the item, one per line, indented to the item’s text, before any description:

- [ ] Order docks
id:: docks
owner:: @mara
due:: 2027-03-01
  • The property block is the run of indented key:: value lines (and, on a requirement, Needs: lines) right below the title line. It ends at the first other line.
  • A heading has properties too: inline on the heading line, or as key:: value lines right below the heading.
  • Keys are lowercase: a letter, then letters, digits, _ or -. A line with an uppercase key is not a property.
  • Unknown keys are kept and shown as custom properties.
  • Lists of values are comma-separated: covers:: req~login, req~logout.
  • If a key is written twice on one node, the first one counts.

When Facet adds a property, it writes up to 3 short ones inline and the rest below the title; How Facet writes has the exact rule.

Key Value Meaning
id [a-z0-9-]+, unique reference target
type task, group, event… (see Types) overrides the type
start, end date fixed dates
duration 3 days, 2 weeks, 4h length, calendar time
after !id or !id + 2 days, comma list finish-to-start dependency
due date deadline, not a scheduling date
repeat recurrence, optional when done repeating task
last date last completion of a repeating task
priority 1 to 4 4 urgent … 1 someday
owner @handle, comma list people
away start/end dates a person’s absence, in people.md
covers req~name list the task covers these requirements
needs req~name list, written Needs: requirement needs requirement
status a column of the board: custom board column
progress 0% to 100%, whole number manual progress of a leaf task
  • Dates, durations, after:: and repeat:: are described in Dates and scheduling and Tasks.
  • covers:: and Needs: are described in Requirements.
  • status:: places a task in a column of a custom board; see the Board view.
  • progress:: sets the progress of a leaf task that is not done (a done task counts as 100%). Parents compute their progress from their children, see Roll-up.
  • A known key whose value cannot be read is a lint error: bad-date for start, end, due, last and away, bad-duration for duration, bad-value for the others. See Lint.

How each view shows these nodes and properties is described in the Views section: the Gantt, the Tree, the Mindmap, the Board, Today, Requirements and the Overview.