Files
wekan/docs/Features/Header-Bar/Board-Title/Board-Key.md
T
Lauri Ojansivu b7589737f5 File docs/Features the way the WeKan menus are.
A feature's guide now sits under the menu it is used from, read from the
templates rather than from where somebody once put it: Header-Bar,
All-Boards, Pages, Board-Header (search and every Board View), Board-Sidebar
(Board Settings, Filter, Members, Labels, Archive), Rules, Swimlanes, Lists,
Cards, Member-Settings, Admin-Panel and Login-Page. Topics used from several
menus (editor, history, theme, translations, email, troubleshooting) are in
General.

- Each area has a README mapping its menu entries to their guides and to the
  template or server module that implements them. Board-Header/README.md
  lists all 40 Board View entries with the template boardBody.jade renders;
  five views (Table, Calendar Mode, Time, Timeline, Map) have no guide of
  their own yet and say so.
- Board-View.md listed 25 views while BOARD_VIEWS has 40; it now lists all
  of them with their English labels.
- Pages keep their file names. Where a released changelog links an old path,
  a "# Moved" page stays there and points to the new one; test-menu.sh skips
  folders holding only those.
- Undo was filed under Login; it is General/Undo now.
- Every link in docs, code comments, scripts and tests follows the move;
  docsLinksResolve checks them all.

Tests that read a doc follow it to its new place. boardViewSettings now fails
when Board-View.md or Board-Header/README.md differs from BOARD_VIEWS, or
names a template boardBody.jade does not render.

Thanks to xet7 !
2026-10-16 23:45:35 +03:00

1.7 KiB

Board key: card numbers like DEV-7

Every board has a key, and a card's number is shown with it: DEV-7 instead of #7 (#2449, #2450). This is the way Jira and other trackers name issues, so a card can be named in a chat, a commit message or an email unambiguously.

  • What a key is: 2 to 10 capital letters and digits, starting with a letter, and used by no other board on the same WeKan.
  • New boards get a key suggested from the title. A title of several words gives its initials ("Development Team" → DT); a single word gives its start ("Marketing" → MARK); a title without Latin letters gives BOARD. A number is added when the key is taken (DT2).
  • Existing boards get a key the first time the server starts after the upgrade, in the background.
  • Changing it: a board admin opens the board's title (the rename popup) and edits Board key. A key another board uses, or one that is not a key, is refused with the reason, and the popup stays open. A key change only changes how numbers are shown; the numbers themselves stay the same.
  • Finding a card: typing DEV-7 in the board's search finds that card. Lower case works too.

Each board's card numbers are kept by the board itself (an atomic counter), so they are safe with several servers. Keys are given out by one queue on each server. With several servers starting new boards at the same moment, the same key could in theory be suggested twice; a board admin then changes one of them.

Code: models/lib/boardKey.js, server/boardKeys.js, models/cards.js (getCardKey). Tests: tests/boardKey.test.cjs and the runtime suite server/lib/tests/boardKeys.tests.js.