General-purpose work unit card for tasks, bugs, chores, spikes, and features — the engineering sibling of user-story.
Overview
A web component for engineering work units — tasks, bugs, chores, spikes, and features. While <user-story> captures product needs in agile format, <work-item> represents the implementation work: what needs to be built, fixed, researched, or maintained. A single story may decompose into multiple work items, and some work items exist independently of any story.
Basic usage
12345678910111213141516
<work-itemitem-id="PROJ-42"type="task"status="in-progress"priority="high"assignee="Sarah Chen"estimate="5"story-ids="PROJ-101,PROJ-102"><h3slot="title">Implement search API endpoint</h3><pslot="description">Build the /api/search endpoint with filters and pagination.</p><ulslot="checklist"><li>Database schema design</li><li>Endpoint implementation</li><li>Integration tests</li></ul></work-item>
Attributes
Attribute
Type
Default
Description
item-id
string
—
Unique identifier (also sets HTML id for cross-referencing)
type
string
"task"
task, bug, chore, spike, or feature
priority
string
"medium"
critical, high, medium, or low
status
string
"backlog"
backlog, to-do, in-progress, review, done, or blocked
estimate
string
—
Effort estimate (points, hours, t-shirt size)
assignee
string
—
Assignee name (shown with auto-generated avatar)
story-ids
string
—
Comma-separated linked <user-story> IDs
detail
string
"full"
full, compact, or minimal
compact
boolean
—
Alias for detail="compact"
src
string (URL)
—
Path to JSON data file
Slots
Slot
Expected Content
Description
title
<h3> or text
Work item title displayed in the card header.
description
<p>
Work item description. Shows in the body section.
checklist
<ul> or <ol>
Subtasks or checklist items.
notes
<p>
Additional notes, context, or links.
Item Types
Each type gets a distinct icon and color badge in the header. Types are semantic — they help teams categorize work without requiring a separate labeling system.
Type
Use Case
task
Engineering implementation work (default)
bug
Defect that needs fixing
chore
Tech debt, maintenance, or operational work
spike
Research, investigation, or proof-of-concept
feature
New user-facing capability
Cross-Referencing
Work items connect to the broader UX Planning system through two mechanisms:
story-ids — links outward to <user-story> elements via fragment anchors. Rendered as clickable chips in the card body.
item-id — auto-set as the HTML id, enabling inbound references from <gantt-chart> rows via data-task-id matching.
The whole work item — state attributes and slotted content — can be set in one assignment. Useful when a reactive framework or kanban-board owns the data.