Files
wekan/docs/Features/Rules/Rule-Suggestions.md
T
Lauri Ojansivu a8fd080bc8 Docs mirror the Admin Panel and the menus: a page for every menu entry.
The docs tree is laid out like the menus - a menu path is a docs path.
Admin Panel / Settings follows the new structure: Visibility.md is
Appearance.md, with new Features.md, Feature-Profiles.md, Security.md,
Activities-and-Notifications.md and Delete.md; the section indexes,
Admin-Panel.md, Admin-Panel-URLs.md (with the moved-pane redirects) and
Validation.md follow the live menus, and Who-Sees-What.md explains in one
place which layer decides what is shown and what is allowed.

Pages are added for the menu entries that had none, each written from
the code: every Admin Panel / Problems pane, the member menu, the board
header, Board Settings, the All Boards left menu, and the list,
swimlane and card menus. Older links to the moved panes are updated
across docs/.

TODO.md records what documenting the menus found: Edit Profile does not
save a username for non-admins, the Support page's signed-out case is
unreachable, Create board from this card is hidden from members who can
edit the card, All Boards Settings is unreachable, and the Share template
targets live in browser storage.

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

1.5 KiB

Rule suggestions

Board hamburger menu → Rules shows, above the rule list, Suggested rules: things people on this board keep doing by hand that a rule could do for them.

When a card is moved to Done, archive it - you did this 7 times in the last 30 days. Create rule

How a suggestion is found

From the board's activities of the last 30 days: when the same person does one thing to a card and then, within two minutes, another thing to the same card, that pair is counted. A pair counted three times or more becomes a suggestion, most frequent first, at most five.

First thing (the trigger) Second thing (the action)
card moved to a list label added, member added, card archived
card added to a list label added, member added
label added member added

A pair that an existing rule of the board already does is not suggested. A suggestion's Create rule makes the trigger, the action and the rule in one step, exactly as building it by hand would; Dismiss hides that one suggestion for you on this board.

Only board admins see the section, because only they may create rules.

Hiding it

Admin Panel / Settings / Features: Rule suggestions. Rules themselves are not affected.

Implementation

models/lib/ruleSuggestions.js (pure: pairs from activities, counting, filtering out existing rules), method rules.suggestions in server/methods/ruleSuggestions.js, drawn by rulesMain in client/components/rules/rulesMain.jade. Tests: tests/ruleSuggestions.test.cjs.