协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
glab-workitems【开发与工程】List and manage GitLab work items (tasks, OKRs, key results, epics). Use when working with GitLab's work item types beyond standard issues. Triggers on work items, tasks, OKRs, key results, epic list, workitems list.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
List and manage GitLab work items — the next-generation work tracking format in GitLab that supports tasks, OKRs, key results, epics, and more.
Added in glab v1.87.0
Work items are GitLab's unified work tracking model. They extend beyond traditional issues to support:
# List work items in current project
glab workitems list
# List in a specific project
glab workitems list --repo owner/project
# Output as JSON
glab workitems list --output json
# All work items (default: open)
glab workitems list
# Filter by type
glab workitems list --type Task
glab workitems list --type OKR
glab workitems list --type KeyResult
glab workitems list --type Epic
# Filter by state
glab workitems list --state opened
glab workitems list --state closed
# JSON for scripting
glab workitems list --output json | python3 -c "
import sys, json
items = json.load(sys.stdin)
for item in items:
print(f\"{item['iid']}: {item['title']} [{item['type']}]\")
"
# Specific repo
glab workitems list --repo mygroup/myproject
# Group-level work items
glab workitems list --group mygroup
| Feature | Issues | Work Items |
|---|---|---|
| Standard bug/feature tracking | ✅ | ✅ |
| Tasks (sub-tasks) | ❌ | ✅ |
| OKRs / Key Results | ❌ | ✅ |
| Next-gen Epics | ❌ | ✅ |
| CLI support | Full | list (v1.87.0) |
Use glab issue for standard issue workflows. Use glab workitems when working with tasks, OKRs, or next-gen epics.
"workitems: command not found":
glab version.Empty results when you expect items:
Type filter returns nothing:
glab-issue — Standard issue managementglab-milestone — Milestones (often used with OKRs)glab-iteration — Sprint/iteration managementglab-incident — Incident management (a work item type)glab workitems list [--flags]
Flags:
--group Select a group/subgroup
--output Format output as: text, json
--page Page number
--per-page Number of items per page
--repo Select a repository
--state Filter by state: opened, closed, all
--type Filter by work item type
-h, --help Show help