Status: Accepted (in force). Verified live 2026-07-20.
Context
A task has two independent questions: how far along is it? and is it due yet? Collapsing these into one field forces awkward compromises — you can't distinguish "in progress but overdue" from "on track," or "done early" from "done late."
Decision
Model two orthogonal axes on both task types:
| Axis |
Enum |
Values |
Set by |
| Status |
EmployeeTaskStatuParams / PredefinedTaskStatuParams |
Not started · In progress · Completed |
The person (progress) |
| State |
EmployeeTaskStateParams / PredefinedTaskStateParams |
Upcoming · Current · Ending · Due · Other |
Derived from dates |
Status is user-driven; state is computed from StartDate/DueDate. Every task has both.
Consequences
Good:
- All the real combinations are expressible: Upcoming + Not started (fine), Due + Not started (overdue, untouched), Ending + In progress (racing the clock), Current + Completed (done early).
- The time axis needs no user maintenance — it follows the calendar automatically.
- Managers can filter by state (what's due) independent of status (what's been touched).
Bad / costs:
- "Due + Not started" reads like a bug to newcomers and users — two seemingly conflicting labels on one task. It's the single most common Tasks confusion; docs must keep explaining it.
- Two axes to reason about in queries and UI; a naive "is this task ok?" needs both.
- The same word "state/status" is used loosely in conversation — precision matters in code and support.
Guidance
- Status = progress, State = time. Never merge them.
- "Overdue" = state
Due/Ending + status not Completed — a derived condition, not a stored flag.
- In UI/support copy, label the two clearly so the combination doesn't read as contradictory.