Files
wekan/docs/DeveloperDocs/Card-Email-Field-Inventory.json
T
Lauri Ojansivu 165dfa3c16 Workload and capacity: hours against working time, across boards, with absences and allocations.
A new page in the user menu, Workload and capacity (/workload), shows week
by week how much work each person has against the hours they have, across
every board the viewer is an active member of
(docs/Features/Workload/Workload.md):

- Load: a card's new Estimated hours, set in the Time popup beside the time
  spent, less that time; story points from the board's Scrum estimate. A
  card's work is spread from its start to its due date over the days the
  person works; overdue work counts today; undated and unestimated cards are
  counted apart, and work nobody carries is shown once as unassigned.
- Capacity: each person's hours per week (default 37.5), work time percent
  (part-time 60 % is 22.5 h) and working days. Absences (vacation, sick
  leave, day off, training, other) and public holidays set by an
  administrator take their days away, and the work moves to the days the
  person is there.
- A week over 100 % - more work than hours, allocations over 100 %, or work
  in a week with no hours - is red; under half full is grey-blue. Clicking a
  week lists its cards.
- Allocations: a board's admins give a member a share of their time on the
  board for a period ("A on board X 50 % in April"), or name a role with no
  person yet ("Developer x 1, 100 %, next month"), drawn as a placeholder
  row with the hours it needs.

The server computes the report (models/lib/workload.js, server/workload.js);
cards are not published for it. Public boards and boards where the viewer
sees only their assigned cards are not included, inactive members are not
reported, and somebody else's absence is dates only: its type and note are
shown to that person and to administrators. Capacity and absences are a
person's own to change (an administrator's for anyone), allocations a board
admin's, holidays an administrator's. The four collections take no client
writes and have no publication; a deleted user's workload data goes with
them. Admin Panel / Features / Workload turns the page and its methods off.

The board's own Workload chart, a count of open cards per person, links to
the page. estimatedHours is copied by WeKan export/import.

tests/workload.test.cjs runs the rules as arithmetic, including the cases of
the request (37.5 h, 60 %, an overloaded week, a vacation, a holiday, 50 %
of April, the placeholder roles); tests/workloadAccess.test.cjs runs the real
methods as each kind of user; tests/playwright/specs/workload-capacity.e2e.js
drives the page. The new strings are translated into every language; low
confidence for the smallest ones (e.g. Tigre, Klingon, Wolaytta, Venda,
Vepsian, Cherokee, Dzongkha, Inuktitut, Nahuatl). In several locales the
eleven still-English enrollment/registration/auth strings were translated
too. The hour symbol h is language-independent in fill-translations.mjs.

Thanks to xet7 !
2026-11-21 19:47:56 +02:00

211 lines
7.0 KiB
JSON

[
{
"fields": [
"title",
"description"
],
"handling": "Footer resolves the authorized source card or board; stale link copies are excluded."
},
{
"fields": [
"boardId",
"listId",
"swimlaneId",
"sort",
"subtaskSort",
"listEnteredAt",
"lastMoveReason"
],
"handling": "Readable placement in ordinary Details and the separate local wrapper section; foreign list/lane names are excluded."
},
{
"fields": [
"recurrenceInterval",
"lastRecurrenceAt"
],
"handling": "Ordinary Details and local wrapper Details; recurrence setters use the displayed card ID."
},
{
"fields": [
"flowStartAt",
"flowInterruptions",
"flowUserId",
"pomodoroStartAt",
"pomodoroPhase",
"pomodoroCount",
"pomodoroUserId",
"pomodoroWorkMinutes"
],
"handling": "Persisted snapshots and public owner names in ordinary and local wrapper Details."
},
{
"fields": [
"scrum"
],
"handling": "Six visible fields in ordinary/local wrapper Details; sprint and release names require the same board. Internal Scrum snapshots and revisions are excluded."
},
{
"fields": [
"flow"
],
"handling": "The Kanban and Scrum flow fields (models/lib/cardFlow.js: blocked and why, class of service, MoSCoW, WSJF) are not in card emails yet; blockedBy is a user id and is never written into a message."
},
{
"fields": [
"archived",
"archivedAt",
"createdAt",
"modifiedAt",
"dateLastActivity",
"cardNumber",
"color"
],
"handling": "Ordinary/source Details. Both link types separately include local archive state/date and lifecycle timestamps. Card number/color follow getRealCard(): source-owned for linked cards, local for linked-board wrappers. Target-board archive state remains in target Details."
},
{
"fields": [
"receivedAt",
"startAt",
"dueAt",
"endAt",
"spentTime",
"isOvertime",
"dueComplete"
],
"handling": "Ordinary/source Details. Linked-board Details includes four dates, spent time, overtime and due-complete from the current target."
},
{
"fields": [
"members",
"assignees",
"requesters",
"assigners",
"requestedBy",
"assignedBy",
"userId"
],
"handling": "Ordinary/source Details resolves public names for account references; requestedBy/assignedBy are prose. Linked-board Members and Assignees use deduplicated active target members with public names, matching card getters. Linked-board local creator/requesters/assigners appear separately with the wrapper board scope."
},
{
"fields": [
"labelIds",
"customFields",
"stickers",
"locationName",
"locationAddress",
"locationLatitude",
"locationLongitude",
"locations"
],
"handling": "Ordinary/source Details with custom-field visibility and definition checks. Linked-board local Details renders these wrapper-owned fields with local definitions, admin visibility and policy fingerprints."
},
{
"fields": [
"parentId",
"parentIds",
"cardDependencies",
"targetId_gantt",
"linkType_gantt"
],
"handling": "Ordinary/source Details resolves authorized targets and groups duplicate labels. Linked-board wrapper relationships use the same authorized resolver and durable related-source evidence. Dependency color/icon are presentation metadata, not separate targets."
},
{
"fields": [
"vote",
"poker"
],
"handling": "Ordinary/source and linked-board Details use disclosure checks. Private voter identities and unfinished Poker choices are excluded; voting configuration is not serialized wholesale."
},
{
"fields": [
"coverId"
],
"handling": "Live selected attachment manifest identifies the cover without exporting an internal ID."
},
{
"fields": [
"type",
"linkedId"
],
"handling": "Control source resolution and durable identity checks; not raw prose fields."
},
{
"fields": [
"scrumRevision",
"syncSourceKey",
"syncLastSource",
"syncExternalId",
"syncSourceType",
"syncLabelIds",
"syncIssueState",
"syncClosedByWeKan",
"deletedAt",
"deletedBy",
"deleteBatchId",
"linkId_gantt"
],
"handling": "Internal provenance, revision, deletion and renderer identifiers are excluded; deletion still governs eligibility."
},
{
"fields": [
"showActivities",
"showListOnMinicard",
"showListOnCard",
"showChecklistAtMinicard",
"hideFinishedChecklistIfItemsAreHidden",
"shownFields",
"hiddenFields"
],
"handling": "Display preferences do not become email content. Discussion selection is controlled by the mail action."
},
{
"fields": [
"mapX",
"mapY"
],
"handling": "Positions on the board's Map view image (#3256), as percentages of that image; they mean nothing without it, so they are not email content."
},
{
"fields": [
"attachedCardIds"
],
"handling": "#3257: ids of the cards attached to this one. Their titles are read only by someone who may read those cards (attachedCardsInfo), so these ids are not email content."
},
{
"fields": [
"customFieldLinks"
],
"handling": "#5681: ids of the cards whose custom fields are linked to this one, with the direction and the link's creator. Link bookkeeping, not card content: the linked values are ordinary customFields, so these ids are not email content."
},
{
"fields": [
"email"
],
"handling": "#794: the email this card came from or was sent as - sender, recipients, subject and the Message-IDs that thread replies onto it (server/emailToCard.js, server/emailView.js). Mail bookkeeping, not card content: excluded, so a card mailed onward never discloses who wrote to the board or the addresses of the conversation."
},
{
"fields": [
"cardKind"
],
"handling": "#2012: whether the card is a Story or a Task. It selects which custom fields the card offers; those fields are covered by customFields above, so the kind itself is not email content."
},
{
"fields": [
"columnSetValues"
],
"handling": "#211: the card's column in each of the board's column sets, as set-id to column-id. Board-view bookkeeping like the Map positions; the ids mean nothing without the board, so they are not email content."
},
{
"fields": [
"drawings"
],
"handling": "#1178: the strokes of the card's drawings, kept so a drawing can be edited again. The drawing itself is a PNG attachment, covered by the attachments manifest; the strokes are not email content."
},
{
"fields": [
"estimatedHours"
],
"handling": "Workload (docs/Features/Workload/Workload.md): the card's estimate in hours. Planning data for the Workload and capacity page, not card content, so it is not part of rule or notification emails."
}
]