Skip to content

References and ids

Any node can have an id. !id then refers to that node from any file of the workspace: in an after:: dependency, in an include:, or as a link in a title or description. Requirements need no id: they are referenced by their own name, req~name.

- [ ] Sign the lease [id:: lease] [due:: 2027-02-26]
- [ ] Move in [after:: !lease + 1 week]
Keys are handed over once !lease is countersigned, see req~night-access.
  • An id is set with id:: on a heading or list item, or with id: in the frontmatter of a file (or of a folder’s index.md, which gives the folder its id).
  • An id is lowercase letters, digits and hyphens, [a-z0-9-]+, and unique in the whole workspace. A value that is not an id is a bad-value error, and an id used twice is a duplicate-id error on every use after the first.
  • Ids are optional. Add one the first time something needs to point at a node. The id operation of facet edit adds one made from the node’s title (Sign the lease gets sign-the-lease, or sign-the-lease-2 when that is taken) and keeps an existing one.
  • Ids in files excluded by .facetignore do not count.
  • !id refers to the node with that id, in any file.
  • An !id that matches no node is an unknown-id error, wherever it is written: in after::, in an include: entry or in text.
  • In a title or description, !id is a link: you can navigate it and lint checks it, but it is never a dependency. Only after:: creates scheduling links.
  • after:: targets must be tasks, events, milestones or groups; anything else is a bad-after-target error, see Dependencies.
  • In frontmatter, quote it: include: ["!lease"], see Frontmatter.
  • A reference must not follow a letter, digit, _, !, ~ or /: Hello!world, !!x and a /!x inside a URL are plain text.
  • A requirement is referenced by its own name: req~night-access, without !. See Requirements.
  • In covers:: and Needs:, a name defined nowhere is an unknown-requirement error. In a title or description, req~name is a link and is not checked.

!id and req~name inside code blocks, inline code and HTML comments are plain text: they are not read and not linted.

Write the dependency as `after:: !lease`. <!-- !draft is not a link -->