Corrected from the code: card aging is in Board Settings / All Boards Settings; Mark as complete is off by default on both sides; the checklist menu says Edit as text and Automatic reset, whose Off is Off (do not reset automatically); Card recurrence is under Move and copy in the card menu; Reset width follows Create cards from action items; comment replies are grouped under their parent and capped at one level; Admin Panel / Settings / Features holds Card fields; the Card section lists Blocked, Class of service, MoSCoW and WSJF. Thanks to xet7 !
10 KiB
Checklists
What it is
A checklist is a list of items on a card, each ticked when done. This page describes the management features of a card's checklists: an automatic reset interval that unchecks all of a checklist's items on a recurring schedule, a bulk text edit that lets you rewrite a whole checklist's items as one block of plain text instead of editing items one at a time, and a checklist's own optional deadline.
Read more
- Checklist on Wikipedia.
- Task list items
in the GitHub Flavored Markdown specification - the
[x]/[ ]lines bulk text edit uses. - cron - the kind of scheduled job that resets the checklists.
- In WeKan: Checklist or subtasks from the description, Card recurrence (the same schedule for a whole card), Due date and the Checklists REST API.
How to use it
Card → a checklist's own hamburger menu (☰, Checklist Actions) - reset interval and bulk text edit are both entries in that menu, for those who may edit the card.
┌ Card ────────────────────────────────────┐
│ Checklist: Daily routine [ ☰ ] <-menu
│ ☑ Water the plants │
│ ☐ Check backups │
└──────────────────────────────────────────┘
┌ Checklist Actions ───────────────────────┐
│ Export / Import ... │
│ Edit as text ... <-here │
│ ---------------------------------------- │
│ Delete ... │
│ Move Checklist ... │
│ Copy Checklist ... │
│ Automatic reset ... <-here │
│ Check all items │
│ Uncheck all items │
│ Hide checked checklist items ... [toggle]│
│ Hide all checklist items ... [toggle]│
│ Show on Minicard ... [toggle]│
└──────────────────────────────────────────┘
┌ Automatic reset ─────────────────────────┐
│ ○ Off (do not reset automatically) │
│ ○ Daily │
│ ○ Weekly │
│ ○ Monthly │
└──────────────────────────────────────────┘
┌ Edit checklist items as text ────────────┐
│ [x] Water the plants │
│ [ ] Check backups │
│ [ ] Feed the cat │
│ │
│ [Save] │
└──────────────────────────────────────────┘
Steps to use automatic reset
- Open a card, click a checklist's hamburger menu (☰).
- Click Automatic reset ....
- Pick Daily, Weekly or Monthly to make the checklist automatically uncheck all of its items once that interval is due again (counted from the last reset, or from the checklist's creation date if it has never reset) - or pick Off (do not reset automatically) to turn automatic reset off.
- Nothing else is needed: a server-side job unchecks the items once the interval comes due, no matter who is logged in at the time.
Steps to use bulk text edit
- Open a card, click a checklist's hamburger menu (☰).
- Click Edit as text .... The popup is Edit checklist items as text.
- The textarea shows one line per existing item,
[x]for a checked item and[ ]for an unchecked one. - Add, remove, reorder or retype lines directly in the textarea - typing,
pasting, or cutting/pasting lines between two checklists (open the popup
on each and copy the relevant lines) all work, since it is plain text. A
line without
[x]/[ ]becomes an unchecked item. - Click Save. The checklist's items are replaced to match the text
exactly, in the order the lines appear, with the
[x]/[ ]prefix controlling each item's checked state.
Checklist deadlines
A checklist may have its own optional due date, independent of item due dates. Use the clock control beneath its title to select a date and time with the shared calendar popup. Its badge uses the selected member calendar and existing due-date colors. Open the badge to edit or delete the deadline. Read-only viewers see the date without editing controls. Checklist and item deadlines are also readable and writable through the REST API; see API docs.
Prerequisites
- Both actions require the same permission as editing the checklist itself (a board member who can modify the card).
- Automatic reset needs no extra setup beyond picking an interval - there is no separate cron/service to configure.
How the numbers are calculated
- Automatic reset (models/lib/checklistResetSchedule.js):
the next reset is due at the last reset (
lastResetAt), or the checklist's creation date (createdAt) the first time, plus 24 hours (Daily), 7 x 24 hours (Weekly) or one calendar month (Monthly, withsetMonth, so a reset on the 31st does not drift). The job runs once an hour, so a reset happens within an hour after it is due. - Progress (models/checklists.js): a
checklist's finished count is its ticked items, its percentage is
round(finished / items x 100)(0 for an empty checklist), and it is finished when it has items and all are ticked. The card's checklist count is the sum over all its checklists (models/cards.jschecklistFinishedCount/checklistItemCount). - Bulk text edit (models/lib/checklistItemsAsText.js):
empty lines are dropped, and the new items are numbered
sort0, 1, 2 ... in the order of the lines.
How it works in WeKan
- Automatic reset: the checklist's
resetInterval(none/daily/weekly/monthly) andlastResetAt. models/lib/checklistResetSchedule.js is the pure arithmetic (computeNextResetAt,isChecklistResetDue,selectChecklistsDueForReset), and server/checklistResetSchedule.js is the hourlyquave:synced-cronjob that unchecks every item of a due checklist in one update. The popup ischecklistResetIntervalPopupin client/components/cards/checklists.jade. - Bulk text edit:
checklistItemsToTextwrites the text,parseChecklistItemsTextreads it back, andplanChecklistItemsTextUpdateplans the change - a line whose title matches an existing item keeps that item (and so its due date and other fields; only its order and tick change), a new line is inserted, and an item no line matches is removed. The popup iseditChecklistItemsAsTextPopupin client/components/cards/checklists.js. - Deadlines: the checklist's due date, edited through the shared date popup, and the checklist REST endpoints.
- Tests: tests/checklistResetSchedule.test.cjs, tests/checklistResetIndex.test.cjs, tests/checklistItemsAsText.test.cjs, tests/checklistBulkCheck.test.cjs, tests/checklistDeadlines.test.cjs and tests/playwright/specs/12-checklists.e2e.js.
Commits
- Checklist items get a person responsible, and dated items show in the calendar and Gantt
- Checklist progress and drag sorting shared with minicards
- Checklist deadlines, and checklist item dates in the REST API
- Check all items and Uncheck all items in the checklist menu
- Automatic reset entry in the checklist menu
- The automatic reset job is wired up on the server
- Per-checklist automatic reset schedule: daily, weekly, monthly
- Bulk edit a checklist's items as plain text
- Due dates for individual checklist items
- A Worker may tick a checklist item without editing or deleting it
- Checklist import and export
- Show on minicard is an override, so unchecking it hides the checklist
- Collapsible checklists on the opened card and the minicard
- Per-checklist Hide checked items toggle