Files
wekan/docs/Features/Board-Header/Watch.md
T
Lauri Ojansivu 9e97f5119d Docs: Board header and board views: what each feature is, how to use it, how its numbers are calculated, how it works, and its commits.
Search now describes the two separate buttons (the shared headerSearchButton
template is gone), the sidebar toggle, stepping through results and what is
searched; Activity rendering names Admin Panel / Settings / Security, where
the security controls moved; Chat view lists only cards with a conversation
and the unread counts; Calendar gets its title and all its dates.

Thanks to xet7 !
2026-11-22 18:06:25 +02:00

6.2 KiB
Raw Blame History

Board header / Watch

What it is

Watch sets how much you hear about a board: Watching notifies you of every change on it, Tracking only of changes to the cards you created or are a member of, and Muted of nothing. The setting is your own; other members choose theirs. The control is after Visibility in a board's header controls and shows your current level.

Read more

How to use it

The button shows your own watch level for this board — Watching (fa-eye), Tracking (fa-bell) or Muted (fa-bell-slash) — as its icon, label and tooltip. See the header for its place in the bar.

  1. Open a board.
  2. Click the watch button (the eye or bell) in the header bar. The popup opens; your current level has a check mark.
  3. Click Watching, Tracking or Muted.
  4. The popup closes and the button shows the new level. If the server refuses, an alert says why (see below) and nothing changes.

Who can use it. Every signed-in user who can see the board. The button is not drawn when an administrator has turned on Disable watch in Admin Panel / Settings / Activities and notifications (watchDisabled helper, Settings.disableWatch).

The popup

boardChangeWatchPopup in client/components/boards/boardHeader.jade. The current level has a check mark.

Level Description shown
Watching You will be notified of any change in this board.
Tracking You will be notified of changes to the cards you are involved in as creator or member.
Muted You will never be notified of any changes in this board.

Choosing a row calls the watch method (server/notifications/watch.js) with 'board', the board id and the level, and closes the popup when it succeeds. The server refuses, and the popup says why in an alert, when:

  • watching is disabled by the administrator (error-watch-disabled: Watching boards and cards is turned off by the administrator), or
  • the user may not see the board (error-board-notAMember). Seeing it through membership, an organization, a team, an email domain, or because it is public or signed-in-users all count.

How the numbers are calculated

Watch has no numbers of its own. It has three levels and a default: a user with no entry in the board's watchers is Muted (complexWatchDefault in models/watchable.js). Who is notified of one activity is a set, worked out in two steps:

  1. In server/models/activities.js the candidates are every user at Watching, plus the users at Tracking who are a participant in that activity.
  2. boardNotificationRecipients() in models/lib/boardNotificationRecipients.js then keeps only candidates who are active board members and whose board level is Watching or Tracking, or who explicitly watch the list or card concerned. Being assigned or mentioned does not reach a member who has muted the board.

How it works in WeKan

  • Data: the level is per user, stored in the board's watchers array as { userId, level } (models/watchable.js, getWatchLevel, setWatcher). A user with no entry is Muted, which is the default; choosing Muted removes the entry.
  • Client: the button and popup in client/components/boards/boardHeader.jade, the watchLevel helper and the click .js-select-watch handler in client/components/boards/boardHeader.js. The handler shows the refusal in an alert; it used to close silently on success and do nothing on an error.
  • Server: the watch method in server/notifications/watch.js checks getFeatureFlags().disableWatch first, then canSeeBoard(), which asks the database with the same boardVisibilitySelectors the board publications use. For a card, an assigned-only member may watch only the cards assigned to them.
  • What the level does: an activity on the board notifies users at Watching for every activity, and users at Tracking only for activities they are a participant in; see the section above.
  • Tests: tests/boardWatchSilent.test.cjs and the browser spec tests/playwright/specs/14-voting-watchers.e2e.js.

Commits