Files
wekan/docs/Features/Cards/Subtasks.md
T
Lauri Ojansivu bfa0748518 Docs: Card features: what each feature is, how to use it, how its numbers are calculated, how it works, and its commits.
Scrum, Set color, Similar cards, Subtasks, Suggested members, Time
tracking, Watch and Star, Whiteboard, Cover image, Locations and Stickers
follow one structure. Corrected from the code: Filter: Subtasks is in the
Subtasks heading's hamburger, the whiteboard keeps the drawing's own size,
the card-field switches are in Admin Panel / Settings / Features, the map
links follow the chosen provider of eleven, Time tracking describes the
card's spent time and time by day, and Scrum now has native sprints.

Thanks to xet7 !
2026-11-22 18:30:01 +02:00

15 KiB

Subtasks

What it is

A subtask is a card that belongs to another card, its parent: a big piece of work is split into smaller cards that can each be assigned, scheduled and moved on their own, while the parent card lists them and counts how many are done. A subtask is an ordinary card. It lives on the parent board's subtask (deposit) board - by default a board of its own, ^Board name^, created the first time - or on any board chosen in the Subtasks Settings. A card can be a subtask of several parent cards.

Read more

How to use it

Add a subtask:

  1. Open the parent card. In the Subtasks section, click + (Add Subtask).
  2. Type the title. Tick Inherit parent's labels to copy the parent's current labels onto the new subtask, once.
  3. Click Save. The subtask is created on the subtask board, in its landing list and swimlane (below).

Add an existing card as a subtask:

  1. In the Subtasks section, click the link icon (Add Existing Card as Subtask).
  2. Choose the board under Card from board (any board you may also write), search, and click the card. Cards already under this card, and the card's own ancestors, are not offered.

A checklist item becomes a linked subtask from the item's own menu (Convert to Subtask), and the lines of a description become subtasks with Make subtasks in Checklist from description.

Work with a subtask: click the hamburger (Subtask Actions) at the start of its row: View it opens the subtask itself, Go to Board opens its board, and a board admin can Delete it. Click its title to rename it.

Filter the board by a parent: to focus a board on one project's direct subtasks, open its parent card and choose Filter: Subtasks from the hamburger at the end of the Subtasks heading. Adjust or clear the selection under Filter → Parent card. See Board filters.

Subtasks Settings: the same hamburger has Subtasks Settings (also in Board sidebar → Board Settings → Card, in the Subtasks section's menu):

Setting What it does
Show parent in minicard: how a subtask's minicard names its parent: Prefix with full path, Prefix with parent, Subtext with full path, Subtext with parent or Don't show parent
Show subtasks field whether the board's cards have the Subtasks section
Deposit subtasks to this board: the board new subtasks are created on
Landing list for subtasks deposited here: their list on that board
Landing swimlane for subtasks their swimlane; Same name as the parent card's swimlane, else the default unless one is chosen

Subtask status

In the card's Subtasks section, each subtask now shows its current status — the list it currently resides in (for example To Do, In Progress, Done) — read-only next to the subtask title. When a subtask lives on a different board than the parent card, the list name is prefixed with that board's title.

Ticking a subtask done

Each subtask in the card's Subtasks section has a checkbox at the start of its row (#4693). Tick it to mark the subtask done, untick it to mark it not done again. The section heading shows how many are done, for example Subtasks (1/3), and the minicard's subtask badge counts the same.

  • What "done" means. A subtask is a card, and ticking it sets that card's own Mark as complete flag - the same checkbox as in the subtask's card details and on its minicard, the one the rules engine's Mark card complete action and Scrum's default completion policy use. An archived subtask also counts as done, as before; it shows a ticked box that cannot be unticked until the subtask is restored.
  • Who can tick it. Anyone who may edit the subtask card itself. A subtask usually lives on the parent board's subtask board, so what counts is the member's role on that board: board admins and normal members can tick; comment-only, read-only and worker members see the box disabled; an assigned-only member can tick only the subtasks assigned to them. The server checks the same rule, so the box is not the only guard.
  • History. A tick is recorded in the subtask's History (the dates group, like any Mark as complete), with who did it.
  • What is counted. Only the subtasks you can see: a subtask on a board you cannot read is neither shown nor counted.
  • Hide completed subtasks now also hides the subtasks ticked done.

Fix: If you are unable to create Subtasks

This can happen on old boards: You have Subtasks board missing.

  1. Create new board similar to your original board, but with ^ at beginning and end of your boardname. For example, if your boardname is MyProject, create new board with name ^MyProject^. At keyboard that character is Shift-^-Space.
Subtask workaround part 1
  1. Set your MyProject board to have subtask board ^MyProject^
Subtask workaround part 2
  1. Now you are able to create Subtasks to your board MyProject.

The server now creates that ^MyProject^ board itself the first time a subtask is added (see the fixes below), so this is needed only when an old board's setting points at a board that no longer exists.

How the numbers are calculated

  • Heading count "done/total" (subtaskDoneCountLabel in models/lib/subtaskDone.js): total is every subtask of the card you can read, archived ones included; done is those marked complete (dueComplete) or archived. With no subtasks the heading shows no count.
  • Minicard badge "M/N" (subtasksFinishedCount / allSubtasksCount in models/cards.js): the same rule, { $or: [{ archived: true }, { dueComplete: true }] } over all subtasks.
  • Status: the subtask's list title; on another board Board / List (subtaskStatusLabel in client/components/cards/subtaskStatusHelpers.js).
  • Add Existing Card as Subtask offers at most 50 cards, in board order, matching the search case-insensitively.
  • Landing list (models/lib/subtaskLandingList.js):
    1. the main board's choice, when it is a live list of the deposit board;
    2. the deposit board's own choice, when it is a live list of it;
    3. none set there: a new Queue list, stored as its choice;
    4. its choice is gone, archived or on another board: its first live list, or a new Queue list that is not stored.
  • Landing swimlane (models/lib/subtaskLandingSwimlane.js): the main board's choice, else the deposit board's, else the deposit board's swimlane with the parent card's swimlane title, else its default swimlane.
  • Position: a new subtask goes to the end of its landing list, with sort = the last open card's sort + 1 (0 in an empty list), and gets the deposit board's next card number.

How it works in WeKan

Subtask fixes

Several long-standing subtask bugs were fixed (2026-06-20, then 2026-07-16 for Meteor 3):

  • Creating subtasks no longer produces extra swimlanes/columns, and you can create more than one subtask reliably. Subtask creation is now performed server-side, so the default subtasks board / list / swimlane are created once and then reused (this also removes the need for the ^MyProject^ board workaround above on new boards).
  • New subtask cards now receive the destination board's automatic ("always on card") custom fields.
  • The board "Landing list for subtasks deposited here" setting now saves and shows the correct list.
  • The subtask "View it" action now opens the subtask itself instead of the parent card.
  • A circular subtask/parent reference can no longer hang the board.

Commits