Gantt, Group by Assignee, Map, Multi Board Calendar, Roadmap, Statistics, Table, Time, Timeline, Board-view titles and Version Control now follow the shared structure, checked against the code. Corrected from the code: the menu names are Frappe Gantt and DHTMLX Gantt; those two draw a card only when it has a Start or Received date, and also draw dated checklist items; Roadmap groups only by text and dropdown fields and puts cards without a value in a No value row instead of leaving them out; Multi Board Calendar labels entries "[Board] Card" and follows the sidebar Filter; the Statistics view no longer shows the time spent summary, which is in the Time view; the Frappe Gantt repository link points to frappe/gantt. Thanks to xet7 !
18 KiB
Version Control view
What it is
The Version Control view shows a board as a repository's issue tracker, laid out like GitHub and Gitea: cards are issues, labels are labels, labels with a due date are milestones, comments are the conversation and attachments are the files. It keeps no data of its own - everything is the board's own, so every change made here is an ordinary card change that the board's history records and can undo. It also imports and syncs issues from GitHub, GitLab, Gitea and Forgejo, and can import a whole GitHub organization.
Read more
- Issue tracking system and Version control at Wikipedia.
- Milestone (project management) and Wiki at Wikipedia.
- GitHub Issues documentation, and Filtering and searching issues - the search words the Issues tab takes.
- Gitea documentation, GitLab issues and Forgejo documentation.
- git-bug - whose GitHub and GitLab bridges use the same request patterns as the sync.
- isomorphic-git - the JavaScript git that reads a GitHub wiki.
- Server-side request forgery at Wikipedia - what the import's SSRF guard prevents.
- WeKan: change history, Labels with a due date, list sync, Board View settings.
How to use it
Open it. Board header → Board View → Version Control, in the menu's Communication and code group. A site admin can turn it off with "Version Control view" in Admin Panel → Settings → Features.
Board → View → Version Control shows the board as a repository's issue tracker. It is laid out like GitHub and Gitea and drawn in the board's own theme. It uses the board's own data, and no second copy of anything is kept:
| GitHub / Gitea | Version Control view |
|---|---|
| Repository name | The board's title (and Public for a public board) |
| An issue | A card. Its title, its description, its comments as the conversation |
| Issue number | The upstream number of an imported or synced issue (Source: #12), otherwise the card number |
| Open / Closed | Closed: the card is archived, or is in a list named Closed, Done, Resolved, Merged or Wontfix, or a synced issue is closed upstream. Everything else is Open |
| Labels | The board's labels, with their colours |
| Milestones | Labels with a due date, and the milestone:<title> labels the importers make |
| Assignees | The card's assignees and members |
| Author | The card's Requested by (an imported issue's author), else whoever made the card |
| Files | The card's attachments |
| History, git log | The board's change history, where Restore undoes a change |
┌──────────────────────────────────────────────────────────────────────────┐
│ ⑂ my-project Public Import: GitHub GitLab Gitea Forgejo ⟳ Sync │
│ ◉ Issues 12 │ ⚑ Milestones 2 │ 🏷 Labels 7 │ 📄 Files 4 │ ⟲ History │
├──────────────────────────────────────────────────────────────────────────┤
│ [is:open label:bug ] [Labels] [Milestones] [New issue]│
│ ┌──────────────────────────────────────────────────────────────────────┐ │
│ │ ◉ 12 Open ✓ 30 Closed [Newest ▾] │ │
│ │ ◉ Crash on start bug 👤 💬 3 │ │
│ │ #41 opened 2026-10-01 by alice ⚑ v1.0 │ │
│ └──────────────────────────────────────────────────────────────────────┘ │
└──────────────────────────────────────────────────────────────────────────┘
Tabs
-
Issues: the issue list, with a search box that takes GitHub's search words:
is:open,is:closed,label:bug,-label:wontfix,milestone:"v1.0",author:alice,assignee:@me,no:label,no:milestone,no:assigneeandsort:created-desc,created-asc,updated-descorcomments-desc. Other words are searched in the number, the title and the description. Clicking a label or a milestone filters by it. -
One issue: the issue page, with the description and the comments as a timeline and a comment box. Close issue / Reopen issue and, at the side, the assignees, labels, milestones and files. Open as card opens the card popup, where everything else is edited: labels, people, dates, and uploading files.
-
New issue: a title, a description and labels. The card is made in the board's open list (the first list not named like a closed one, or a new Open list).
-
Milestones: each milestone with its due date, overdue when it has open issues past it, and its progress bar of closed issues.
-
Labels: each label with its number of open issues.
-
Files: every attachment of the board's cards, with the issue it is on.
-
History: the board's history table: who changed what and when, searchable and per person. Restore undoes the selected changes. Closing, reopening and new issues are ordinary card changes, so they appear here and can be undone like any other.
-
Releases: the cards of the board's Releases list, newest first, with their notes and files, as GitHub's releases page.
-
Wiki: the cards of the board's Wiki list as a GitHub wiki: the page list at the side (
Homefirst),_Sidebarunder it and_Footerunder the page, and a link to another page opens that page in the tab. History shows the page's history - each commit that changed it, dated as committed, by its author - and Restore brings an older text back. Edit opens the page's card.
Closing and reopening
Close issue moves the card to the board's Closed list, or to the first list named like a closed one. A board without one gets a Closed list. Reopen issue moves it back to the open list, and restores it if it was archived. The move is an ordinary card move: History records it and Restore undoes it.
A synced issue (below) is closed and reopened in its own tracker, and the next sync brings the new state. Its card stays in its synced list, because moving it out would make the sync see the issue as gone.
Importing and syncing
Import at the top opens the existing importers for GitHub, GitLab, Gitea and Forgejo. They make a new board in the database WeKan is running on, with a card per issue in Open and Closed lists, the issue's labels and milestone as labels, its comments as card comments, and:
- its files as card attachments, stored where every upload is stored:
Admin Panel → Attachments → Default Storage. A file is a GitHub
user-attachments/user-imageslink in the issue or a comment, a GitLab/uploads/…link, or a Gitea / Forgejo issue or comment asset or/attachments/<uuid>link (models/lib/issueAttachments.js, at most 50 per issue). Each one is downloaded through the import's SSRF guard, which checks every redirect hop, and the upload checks its type and size. A file that cannot be fetched is listed in the import's losses in Admin Panel → Problems → Recovery.
Sync keeps a list up to date with a repository: List menu → Sync, the same list sync Jira uses. It brings every issue, open and closed, page by page, and the issues added since last time, every 15 minutes or with Sync now. For each synced list the Version Control header has a Sync from GitHub: button. With the sync option Comments, labels, state and files a sync also brings, for GitHub, GitLab, Gitea and Forgejo:
| What | How |
|---|---|
| Comments | GitHub and Gitea: one paged list of the whole repository's comments (/issues/comments). GitLab: each issue's notes. One card comment per upstream comment, keyed by its id. An edit upstream updates it. A comment written in WeKan is never touched |
| Labels | Board labels named like the issue's (made when missing, with a stable colour). A label that sync added and the issue no longer has is taken off. A label added in WeKan stays |
| State | Open or closed upstream, shown by this view |
| Files | As for the import, each URL once, at most 100 downloads a run (the rest come next run) |
It is off by default because it writes comments and files into the cards. A
rate-limited answer is waited out once when the API frees up within a minute;
otherwise the run ends and says when to try again, and the next run picks it
up. These are the same request patterns as git-bug's GitHub and GitLab
bridges and Gitea's repository migrations. Gitea issues are fetched with
type=issues, so pull requests are not downloaded only to be dropped.
GitHub organization
Import → GitHub → Import a whole GitHub organization imports every
repository of an organization, or of a user (wekan or
https://github.com/wekan). Each repository becomes its own board, named
owner/repository, opening in this view:
| Part | Becomes |
|---|---|
| Issues | Cards in Open and Closed, with their comments, labels, milestones and files (always) |
| Releases | A card per release in Releases: tag and name, notes, date |
| Release files | The release's files attached to its card (off by default: they can be large) |
| GitHub Actions | Rules, as Rules → GitHub Actions workflows describes |
| Wiki | A card per page in Wiki, with links and history (below) |
The wiki is a git repository (<repository>.wiki.git), because GitHub has no
API for it. WeKan reads it with isomorphic-git, a JavaScript git, so nothing
is installed. Every request, the clone included, goes through the SSRF guard
and may only reach github.com. The clone is made in a temporary directory and
removed afterwards. A page is a card: its title on the minicard and its text in
the card's details. A [[link]], [[text|Page]] or Markdown link [text] (Page) to another
page points at that page's card and is attached to the card as a link to
card. Each commit that changed the page is an edit of the description in the
card's history, dated as committed. So Restore and undo bring back an
older version, and the Wiki tab shows the history as GitHub does.
The import runs on the server as a job: the page shows its progress, and it can be cancelled. It runs as the person who started it, through the same import every other source uses, with that person's rights. A token is optional: it is needed for private repositories and for GitHub's higher API limit. It is kept only in the server's memory while the job runs, never saved. After a server restart the job is paused and continues with the token given again. When GitHub's rate limit is reached the job stops at that repository and can be continued later. Admin Panel → Features → Security can turn every import off, this one included.
Public boards
Like every view, Version Control can be offered on a public board, and be the view it opens in: Board Settings → Board View. A visitor who is not logged in sees it read-only: the New issue, close, reopen, comment, import and sync controls are not drawn, and the server refuses them anyway.
How the numbers are calculated
From models/lib/versionControlView.js unless named otherwise:
- State: an issue is closed when its card is archived; otherwise, for a synced issue, the state upstream; otherwise closed when its list's title is Closed, Done, Resolved, Merged or Wontfix (case-insensitive), and open in any other list.
- Issue number: the number in an importer's
Source: #<n>(orSource: group/project#<n>) line at the end of the description, up to nine digits; otherwise the card number when it is a positive whole number. - Open / Closed counts above the list: the issues that match the search
apart from its
is:word, counted by state. - Search: every label,
milestone:,author:,assignee:andno:word must match, names compared case-insensitively; a-label:must not match; other words must all appear in#number title description. An unknownkey:valueis searched as text. The default order iscreated-desc; ties are broken by the higher issue number first. - Milestones: a milestone's progress is
round(closed × 100 / its issues)percent (0 when it has none); it is overdue when it has a due date in the past and at least one open issue. - Labels: each label's number is how many open issues carry it.
- New issue: the title's whitespace runs are collapsed and it is trimmed; it is required and at most 1 000 characters; the description is at most 65 536 characters; at most 50 labels.
- Files of an imported issue: at most 50 per issue
(models/lib/issueAttachments.js
MAX_ATTACHMENTS_PER_ISSUE). - Sync (models/lib/listSyncIssueDetails.js):
at most 100 file downloads a run (
MAX_DOWNLOADS_PER_RUN), runs every 15 minutes (server/listSync.js). The wait after a rate limit (HTTP 403 or 429) is theRetry-Afterseconds, or the time untilx-ratelimit-reset/RateLimit-Reset, or 60 seconds for a bare 429; it is waited out once when it is under a minute.
How it works in WeKan
- Reading needs nothing new: the cards, labels, comments and attachments are the board's own, already published to whoever can see the board.
- Writing: only two writes need the server, in
server/versionControlView.js:
vcsCreateIssue(a card in the board's open list, for a board member with write access) andvcsSetIssueState(Close / Reopen: the card moves to the closed or open list, for those who may edit that card). Both write through the ordinary collections, so the change history hooks record them and the History tab can undo them like any other move. A board with no Closed or Open list gets one, made last. - Menu and feature switch:
board-view-version-controlin models/lib/boardViewSettings.js, featureviews-version-controlin models/lib/instanceFeatures.js. - Browser test: tests/playwright/specs/version-control-attachments.e2e.js.
Files
| File | |
|---|---|
client/components/boards/versionControlView.jade, .js, .css |
The view |
server/versionControlView.js |
vcsCreateIssue, vcsSetIssueState |
models/lib/versionControlView.js |
State, number, milestones, search, progress. No Meteor code |
models/lib/issueAttachments.js |
Which links of an issue are its files |
models/lib/listSyncIssueDetails.js, server/lib/listSyncIssueDetails.js |
Sync's comments, labels, state and files |
server/githubOrgImport.js, models/lib/githubOrgImport.js, models/githubImportJobs.js |
The organization import |
models/lib/githubActionsRules.js, models/lib/workflowYaml.js, models/lib/cronSchedule.js |
GitHub Actions as Rules |
models/lib/githubWiki.js, server/lib/githubWiki.js |
The wiki as cards |
tests/versionControlView.test.cjs, tests/issueAttachments.test.cjs, tests/listSyncIssueDetails.test.cjs |
The tests |
Commits
- Attachments open in the same viewer as on the card, more file kinds included
- Close and reopen follow the list's role exception
- A new issue writes one "created" activity, not two
- Board role permissions apply to this view too
- Attachments have the card's controls, and open in the viewer
- Issue titles rendered as Markdown
- GitHub organization import: repositories, issues, releases, Actions and wiki
- The Version Control board view, issue files and synced issue details