Skip to content
Connect an agent

Other diagram kinds

Kanban boards

A kanban board shows work as cards in columns by stage, so a reader sees at a glance what is waiting, what is in progress, and what is done, who owns each piece, and where a stage holds more than it should. Use it for a sprint or a release in a status update, an incident's follow-up actions, or a hiring pipeline. It is for anyone reporting the state of work, and for an agent asked to summarise a tracker.

TL;DR

QuestionAnswer
What is it for?Work in stages: a sprint, a release, incident actions, candidates in a pipeline.
How do I start one?Write kanban "Title", then a column block for each stage with a card line for each piece of work inside it.
What goes on a card?A title, and optionally owner=, ticket=, priority=, tags=, a sub= note, a tone=, and an icon=.
What is a limit?limit=3 on a column is its work-in-progress limit: the heading shows 2 / 3, and turns amber when the column holds more.
What does Mermaid convert?kanban: columns, tasks, and each task's assigned, ticket, and priority. See From Mermaid.
How big can it be?At most 16 columns and 300 cards. Warnings start at 8 columns or 15 cards in one column.

Ask your agent

text
Use Plotwork to draw a kanban board of the 2.4 release: To do, In progress (limit 2), In review and Done. Put each ticket on a card with its owner, its ticket key and its priority.
text
Use Plotwork to draw the follow-up actions from the checkout incident review as a kanban board, with an owner and a priority on each action and a limit of two on the column in progress.

Example

A release board. The column in progress is at its limit of two, so its count reads 2 / 2; one more card would turn its heading amber.

An incident follow-up

Actions from a review, by owner and priority. The column in progress is at its limit of three; a fourth card would turn its heading amber, and lint would warn that the team is taking on too much there.

A hiring pipeline

Stages of a pipeline as columns, with the person who owns the next step on each card.

The language

The header

kanban "Title" starts the board. desc= is the plain-language description, for assistive technology.

Statements

StatementMeaningExample
column <id> "<Title>" {A column, with its cards inside and } on its own line.column doing "In progress" limit=3 {
card <id> "<Title>"A card, inside a column, in the order written.card api "Export" owner="Ben"
desc "<text>"The description, the same as desc=.desc "Work for 2.4."

Columns and cards share one set of ids, so a card cannot have the id of a column.

Columns and limits

OptionValuesMeaning
tone=any toneWashes the column, and its heading a step stronger.
icon=any bundled iconDrawn before the name in the heading.
limit=a whole numberThe work-in-progress limit. The heading counts the cards against it, and a column over it has an amber heading and a warning.

A column with no cards shows a dashed "No cards" slot. Every column is as tall as the tallest, so the board reads as one block.

Cards

OptionValuesMeaning
owner=textDrawn at the bottom right as the name and a round badge of initials. A person has the same colour wherever they appear.
ticket=textThe ticket key, at the bottom left.
priority=highest, high, medium, low, lowestA mark before the ticket: chevrons up in red and orange for urgent work, two amber bars for medium, chevrons down in blue and grey for work that can wait.
tags="api, export"One line after a tag icon.
sub=textA note under the title.
tone=any toneTints the card's outline.
icon=any bundled iconDrawn before the title.

A title wraps to three lines and a note to two. When the owner does not fit beside the ticket, they take a row of their own. Text that is still too long is cut with warning W203; the full text stays in the text description.

A Plotwork picture is a static image with no links inside it, so a ticket is drawn as text. Link the tickets in the text around the board if readers need them.

Limits and warnings

LimitWhat happens
More than 16 columns or 300 cardsRefused with E140 before any layout.
A column over its limitW200 at the column.
More than 8 columns, or 15 cards in one columnW200: a board that long is a backlog. Draw the work in play.
The same ticket on two cardsW200.
A board with no cardsW200.
Text cut to fitW203.

From Mermaid

Mermaid kanban converts to a kanban board. Ask your agent to convert it, or use the convert_mermaid tool. The migration guide covers the converter in full. Indentation is the structure: the lines as far in as the first are columns, and the lines indented under a column are its cards.

Mermaid
kanban  todo[To do]    docs[Write the release notes]    perf[Profile the parser]@{ ticket: REL-219, priority: 'Low' }  doing[In progress]    export[PNG export endpoint]@{ assigned: 'Ben', ticket: REL-204, priority: 'Very High' }  done[Done]

The converter writes a block for each column and a card for each task, with its details as options:

Plotwork
kanbancolumn todo "To do" {  card docs "Write the release notes"  card perf "Profile the parser" ticket="REL-219" priority=low}column doing "In progress" {  card export "PNG export endpoint" owner="Ben" ticket="REL-204" priority=highest}column done "Done" {}
MermaidPlotworkReport
kanbankanban "<title>"none
Front matter title:The header titlenone
id[Title] at the first indent, or [Title], or a bare wordcolumn id "Title" {none
id[Text] indented under itcard id "Text"none
@{ assigned: 'x' }owner="x"none
@{ ticket: X }ticket="X"none
@{ priority: 'Very High' }priority=highestnone
A node with no idAn id made from its textnone
An id used twiceNumberedM206
Other @{ } keys, an unknown priority, details on a columnDroppedM203
HTML in a titleRemovedM205
Front matter config:, such as ticketBaseUrlDroppedM200
More than 16 columns or 300 tasksNothing is converted.M102
A line that cannot be readNothing is converted, or the line is skipped when the conversion is lenient.M110, or M218

See also

DocWhy
Writing diagramsThe rules every kind shares
Examples to copyFinished diagrams with the prompt that gets an agent to write each one
Migrating from MermaidConvert existing Mermaid diagrams, and what is dropped
Swimlane diagramsSteps of a process in lanes by who does them
Gantt chartsThe same work along a calendar
Language referenceEvery kind, option and diagnostic