- The General/ level is gone: its 109 files moved up into the folders of the same name, and its topic table is the "Shared topics" section of Features.md. - Accessibility is one folder, docs/Features/Accessibility/, with the Admin Panel's accessibility page in it. - Every folder's main page is README.md (110 X/X.md pages renamed with git mv, five merged with an existing README.md, 26 index pages added for folders that had none), so a folder opened on GitHub shows its page. - The 73 "# Moved" forwarding pages are deleted, with the folders that held only them; every link that went to one goes to its final page. - docs/Features/README.md has the website's "Features in WeKan" overview, each feature linking to its page here. 1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose, snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when General/ or a "# Moved" page comes back, a folder has no README.md, or a relative link in the docs or README.md does not resolve. Thanks to xet7 !
IFTTT / Rules (Automation)
What it is
WeKan Rules ("if this then that") automate your board: when something happens (a trigger), WeKan runs an action.
See the full, up-to-date reference at Features / Rules — this page is a quick overview. The Rules page is now a fullscreen page (board sidebar → Board Settings → Rules), not a popup, and adds selecting, editing, import/export, a visual Workflow view, scheduled rules, and a REST API.
This page is the original IFTTT rules design and overview, from 2018; the current reference is Rules (Automation).
Read more
- IFTTT on Wikipedia - the "if this then that" service the feature is named after.
- Event condition action
- the trigger-then-action model.
- In WeKan: Rules (Automation), Blocks view, Rule suggestions.
How to use it
The screenshots below are from the first version, when Rules was a dialog. Today open the board's right sidebar → Board Settings → Rules.
1) Click: Menu item for the rules
2) Rule Menu: Overview, deleting and adding new rules
2a) Add new rule : Triggers
Currently, there are three types of triggers: board, card and checklist
| Board | Card | Checklist |
|---|---|---|
| create card | added/removed label, attachment, person | checklist added/removed |
| card moved to | check item checked/unchecked | |
| card moved from | checklist completed |
2b) Add new rule : Actions
For every trigger, there are 4 types of actions: board, card, checklist and mail
| Board | Card | Checklist | |
|---|---|---|---|
| move card to list | add/remove label, attachment, person | checklist add/remove | send email to |
| move to top/bottom | set title/description | check/uncheck item | |
| archive/unarchive | checklist complete |
Example: how the rules work
- Rule 1: When a card is added to the board -> Add label yellow
- Rule 2: When a card is moved to List 2 -> Add checklist ToDo
- Rule 3: When a card is added to List 1 -> Add label blue
How the numbers are calculated
The overview has no numbers of its own. The scheduled triggers' timing (checked every minute), the card-aging days and the rule e-mail limits are explained in Rules (Automation).
How it works in WeKan
What's new beyond the basics above
- Scheduled triggers: run rules on a schedule (once / daily / weekday / weekly / monthly at a time), on due dates (set / approaching / overdue), or by card aging ("a card has been in a list for N days"). Example process that works out of the box: archive cards that have been in "Completed" for 90 days.
- Buttons: card buttons (shown on the card) and board buttons that run an action on demand.
- More actions: sort a list, move all cards in a list, mark card complete / incomplete, set a date relative to now, in addition to the actions below.
- Manage rules: select all / unselect all, delete selected, edit (rename), and a
visual Workflow view (
When … → Then …, grouped by trigger). - Import / Export rules to JSON (lossless) and CSV (round-trippable); export only
selected rules; best-effort import of Trello Butler commands; import of Jira
automationRules. - REST API to add/edit/remove rules — see Rules REST API below.
Rules REST API
Rules can be added, edited and removed over the REST API. The trigger and action are embedded inline so each rule is self-contained.
| Method | Path | Purpose |
|---|---|---|
GET |
/api/boards/:boardId/rules |
list rules |
GET |
/api/boards/:boardId/rules/:ruleId |
get one rule |
POST |
/api/boards/:boardId/rules |
add a rule |
PUT |
/api/boards/:boardId/rules/:ruleId |
edit a rule (title / trigger / action) |
DELETE |
/api/boards/:boardId/rules/:ruleId |
remove a rule (and its trigger + action) |
POST / PUT body:
{
"title": "Archive after 90 days",
"trigger": { "activityType": "scheduledTrigger", "scheduleKind": "aging",
"listName": "Completed", "days": 90, "atTime": "03:00" },
"action": { "actionType": "archive" }
}
Python helper (api.py):
python3 api.py listrules BOARDID
python3 api.py addrule BOARDID 'On create -> top' \
'{"activityType":"createCard","listName":"*","swimlaneName":"*","cardTitle":"*","userId":"*"}' \
'{"actionType":"moveCardToTop","listName":"*","swimlaneName":"*"}'
python3 api.py editrule BOARDID RULEID '{"title":"New title"}'
python3 api.py removerule BOARDID RULEID
See Features / Rules for the full list of trigger
activityTypes and action actionTypes, scheduled rules, buttons, the visual
Workflow view, and Trello/Jira import.
Pictures
This folder contains pictures and gifs for the ifttt feature. They are the pictures and GIFs used on this page.
Commits
- Rules can be shown to board members, read-only
- Rules card title filter and the rules REST API
- Scheduled rules, the Workflow view, buttons and rules import/export
- Export and import of rules
- Finished alpha rules
- Completed rules
- Main flow of triggers and actions implemented
- Triggers view
- UI for the rules list