Files
wekan/docs/Features/ImportExport/Sync.md
T
Lauri Ojansivu a01e8478c3 Add a list-sync job that keeps a list up to date from Jira (and GitHub/GitLab/Gitea).
A WeKan list can be marked with a syncSource (type/url/projectKey) and a
server-only credential (models/listSyncCredentials.js, never published).
server/listSync.js registers a quave:synced-cron job, reusing the SAME
scheduling infrastructure the checklist-auto-reset job uses, that fetches
each synced list's current items and reconciles them against WeKan
(models/lib/listSyncReconcile.js, pure/unit-tested): new items create
cards, changed items update them, and items that disappeared upstream are
ARCHIVED rather than deleted, so old entries stay in the list's history.

Fetching (server/lib/listSyncFetch.js) and parsing reuse the existing
one-time-import parsers in models/lib/externalParsers.js (parseJira is
new there; parseGithub/parseGitlab/parseGitea gained externalId) instead
of a second implementation. Jira works end to end; GitHub/GitLab/Gitea
share the same job and reconcile logic via their existing parsers.

Thanks to xet7 !
2026-09-10 21:41:20 +03:00

6.6 KiB

Big Picture Roadmap: Import/Export/Sync with WeKan

List sync (implemented, Jira end to end)

A WeKan list can be marked as synced from an external tracker: set Lists.syncSource = { type, url, projectKey, enabled } (models/lists.js) and store the credential separately, server-only, in ListSyncCredentials (models/listSyncCredentials.js - no publication exists for it anywhere, so it can never reach the client). server/listSync.js registers a quave:synced-cron job (the same scheduling infrastructure server/checklistResetSchedule.js and server/scheduledRules.js use) that, every 15 minutes, fetches each synced list's current items (server/lib/listSyncFetch.js) and reconciles them against WeKan (models/lib/listSyncReconcile.js, pure and unit-tested in tests/listSyncReconcile.test.cjs):

  • a new external item creates a WeKan card;
  • a changed title/description updates the existing card;
  • an external item that disappeared is archived, never deleted - "old entries are at list history", per the request this implements.

Fetching and parsing REUSE the existing one-time-import code in models/lib/externalParsers.js (parseJira, parseGithub, parseGitlab, parseGitea) rather than a second implementation; SYNC_CAPABLE_SOURCES lists which of those parsers emit the externalId reconcile matches on. Jira works end to end (fetch, parse, reconcile, create/update/archive). GitHub/GitLab/Gitea/Forgejo share the exact same job and reconcile logic - their own fetchers exist in listSyncFetch.js - but are less exercised in this pass; see the CHANGELOG's TODO Later for what remains (moving a card across lists on an upstream status change, and covering more than issues). Configuration methods: setListSyncSource, hasListSyncCredential, syncListNow (server/methods/listSync.js), all requiring board write access.

Implemented formats and completeness work

The current contract, newest provider/API references, complete field inventory, loss accounting and restart behavior are maintained in Format-Coverage.md. The historical issue table below is retained as provenance; it is not the current format specification.

Historical issue inventory

More

WeKan kanban

From Import Export Sync In Progress
CSV/TSV CSV/TSV Custom Fields, Hours, Custom Fields value and name Error 500
JSON Checklists, Sandstorm Header, Upload File, Templates Name, Cards/Lists, List Order, Invisible, List Color, Comments, Labels, Subtasks JSON, Checklists, Cards/Lists, Card, Labels, List Order, Version Bidirectional
Any
Excel XLSX
Board HTML Card Content, Link to Minicard
Clipboard Markdown Markdown, Board JSON
Text DragDrop Boards/Swimlanes
Print Board
CLI Sandstorm Sandstorm
WeKan All Boards ZIP

Other kanban

From Import Export Sync In Progress
Trello JSON, Feedback, File Upload Attachments, Sandstorm Attachments, CheckLists UserId
Jira
Asana
Zenkit

Wishes

Other Kanban

From Import Export Sync In Progress
Focalboard
Google Tasks
Notion
TaskWarrior
Todo.txt
Todoist
Redmine
RestyaBoard
Rust Kanban
Leo and Emacs Org mode
Microsoft Planner

Issues and SCM

From Import Export Sync In Progress
GitHub
GitLab
Fossil SCM
Git-Bug
Gitea
Gogs wekan-gogs

Wiki

From Import Export Sync In Progress
Confluence