Files
wekan/docs/Features/Workload/Workload.md
T
Lauri Ojansivu d88662d69c PSA: expenses, fixed fees and retainers, time approval, cost rates and margin, quotes, utilization and skills.
Budget and billing gains what a professional services automation system
has on top of time and invoices:

- Expenses (travel, accommodation, meals, materials, subcontracting,
  software, other) with a markup, billable or not, on a card and a person.
  They spend the budget at their cost and go on the next invoice of their
  period at their charge, once; voiding or crediting frees them.
- Fixed fees billed once from their day (milestones, fixed prices) and
  monthly retainers to their end. Which occurrences are billed is read from
  the standing invoices' lines. "Bill time by the hour" off makes a board a
  fixed price: its invoices carry fees and expenses only.
- Approving time: with it on only approved time is invoiced; board admins
  approve or send back the waiting entries, the card's Time popup shows the
  decision, and approved time can no longer be removed by its logger.
- A cost per hour on a rate, the board's cost (hours at cost rates and
  expenses), unbilled work in progress and the margin.
- Quotes (QUO-YYYY-NNNN) of the work still to do and the fees not billed,
  valid for the invoicer's days, draft -> sent -> accepted or declined;
  accepting can make the quote the budget; PDF, SVG, Excel and CSV.
- The board's customer, filled in on invoices and quotes.

Workload gains billable utilization against working time with a target, and
skills with levels: a placeholder that needs a skill lists who could do it,
the most free hours first.

Two bugs found on the way: crediting an invoice failed on a real database,
because the invoice schema did not allow the status "credited" (a test now
checks every status the server writes against the schema); and the workload
report ignored everybody's own working time, because capacityOf validated
the stored document with its _id and userId and fell back to the default.

58 new strings are translated in every language. Lower-confidence
translations: chr, dz, bo, csb, cv, bua, ay, ff, fj, gn, gv, haw, ig, iu,
kl, kw, ks, kok, hsb, lg, lld, nah, nap, scn, sc, rup, rm, qu, se, sah, nd,
ss, nso, ny, sn, rn, rw, om, so, sm, mi, mg, pap, la, mai, or_IN, sd, ps,
my, tig, tlh, wal, zgh, vo, ve-PP, uz-AR, tpi, wa and wo.

Thanks to xet7 !
2026-11-21 22:19:45 +02:00

99 lines
5.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Workload and capacity
User menu → **Workload and capacity** (`/workload`) shows, week by week, how
much work each person has against the hours they have, across every board you
work on. It answers the questions a board's Swimlanes per member and the
board's own *Workload* chart (a count of open cards per person) cannot: who has
too much in a given week, who could take more, and what a coming project needs
before anybody is named.
## What is counted
- **Hours.** Each card can have **Estimated hours**, set in the card's *Time*
section beside the time spent (the same popup). What is still to do is the
estimate less the time spent, never below zero. A board whose Scrum estimate
unit is hours (`h`, `hours`, `tunti`, ...) counts its Scrum estimates as hours
for cards that have no estimate of their own.
- **Story points.** On a board with Scrum on, the board's estimate (Planning
Poker or the numeric custom field chosen in Scrum settings) is summed as
points. *Show* switches the table between hours and points.
- **Who carries a card.** Its assignees, shared equally; a card with no
assignee is carried by its members. A card nobody carries is shown once, on
the *Not assigned to anybody* row.
- **When.** A card's work is spread from its start (or received) date to its
due (or end) date, over the days the person works, in proportion to their
hours on each day. Work whose dates are past is due now and is counted
today, and the card is counted as overdue. A card with no dates is shown
under *No dates*; a card with no estimate is counted under *Cards without an
estimate*. Finished (due complete) and archived cards count nothing.
## Capacity
- **My working time**: hours per week (default 37.5), work time percent (a
part-time 60 % of 37.5 h is 22.5 h) and the working days. A day's hours are
the week's hours shared over the working days.
- **My absences**: vacation, sick leave, day off, training or other, from one
day to another. An absent day has no hours, and work spread over a period is
moved to the days the person is there.
- **Public holidays**: set by an administrator on the same page; a day off for
everybody.
A week is **red** when its work is more than its hours (over 100 %), when the
person's allocations add up to more than 100 %, or when there is work and no
hours at all (an absence). It is **grey-blue** when it is under half full. Click
a week to see the cards in it.
## Utilization
Under each person's name, the report shows their **billable utilization**:
the hours they logged on billable cards in the report's weeks, against the
hours they had. **Billable target** in *My working time* sets the share they
aim for; under it, the figure is red. Time logged on a card marked not
billable counts as logged, not as billable. Only the time on the boards of the
report is counted.
## Skills
*My working time* also lists a person's **skills**, each with a level 1 to 5
("React 4, Go, Finnish 5"; 3 when not given). A placeholder can name the
**skill it needs** and the lowest level that will do; its row then shows who
**could do it** - the people of the report with that skill at that level or
better, the most free hours first over the weeks it needs them. Free hours
are the hours a person has less the work they carry or the time promised to
boards, whichever is more.
## Allocations and placeholders
A board's admins can allocate a share of a person's time to the board for a
period - "A works on board X 50 % of their time in April" - shown in each week
as a percent beside the load. Without a person, an allocation is a
**placeholder** for a role: "Developer × 1, 100 %, next month" is drawn as its
own row with the hours it will need, so a project can be planned before the
people are chosen. A person allocated must be an active member of that board.
## Who sees what
- A report covers the boards you are an active member of, except boards where
you only see the cards assigned to you, and the active members of those
boards. Public boards are not included: somebody's workload is not public
because one of their boards is. An administrator may choose *All boards*.
- Only the cards of those boards are counted, and the cards themselves never
reach the browser: the server computes the report and sends the numbers.
- Somebody else's absence is shown only as days absent. Its type and note -
whether somebody is sick, and why - are shown only to that person and to
administrators.
- Your working time and absences are yours to change; an administrator can
change anybody's. Allocations are changed by the board's admins, holidays by
administrators.
## Code
| | |
| --- | --- |
| `models/lib/workload.js` | the rules, as pure functions: capacity, spreading, allocations, placeholders |
| `models/lib/workloadView.js` | how a week is drawn: colour, bar, text |
| `models/workload.js` | the collections `workloadCapacities`, `workloadAbsences`, `workloadHolidays`, `workloadAllocations` - no client writes, no publications |
| `server/workload.js` | the methods, with who may call them |
| `client/components/main/workload.*` | the page |
| `tests/workload.test.cjs` | the rules; `tests/workloadAccess.test.cjs` who may do what |