Issue、label、里程碑、看板、weight
與 GitHub 相同:一件事一張單、有編號(#12)、可留言、指派與標籤。
但 GitLab 的 Issue 與 MR 的整合更深(Closes、Boards、Milestone 全打通)。
標題:登入頁在 Safari 上空白 描述: 步驟: 1. 開 Safari 到 /login 2. 畫面空白 預期:顯示表單 實際:白畫面(console 有 500) 環境:Safari 17, macOS 15 標籤:bug, priority::high
GitLab 內建常見預設標籤,也可自訂。特色是 scoped labels:
bug feature documentation good first issue help wanted # Scoped labels:同一個字首只會掛一個 type::bug type::feature priority::high priority::low do::1(待辦) do::2(進行中) review done
priority::,
系統會自動排除衝突。這讓「篩選」與「看板欄位」可以靠標籤自動對應——GitLab 的工程團隊文化常見到
type:: / priority:: / do:: 三組字首。把 issue / MR 歸到一個里程碑,追蹤整體進度——GitLab 的獨特點是同時掛 issue 與 MR:
v1.0 發布(2026-10-01) ├─ #10 修登入 bug(open) ├─ #12 新增搜尋(open) ├─ #15 文件(closed) └─ !34 搜尋後端(merged,自動計入) 進度:2/4
類似 GitHub Projects,但更接近 Trello;欄位通常由 label 定義:
┌─ To do ──┬─ Doing ──┬─ Review ──┬─ Done ──┐ │ #10 │ #12 │ │ #15 │ │ #16 │ │ │ │ └──────────┴───────────┴───────────┴──────────┘ do::1 do::2 review done (欄位由 scoped label 對應)
Issue 可設 weight(工作量估算,如 1–5)。配上看板的 Total weight
可估算 sprint 負載;配對 milestone 可追蹤「這個版本總工作量剩多少」。
#12 新增搜尋 weight: 3
#10 修登入 bug weight: 1
#16 設定頁重構 weight: 5 # 大工程,拆細更好
里程碑總計:9,已完成 4
Epic 是群組層級的「大目標」,底下掛多個 issue——GitLab 特有(EE/付費才有完整功能):
Epic:2026 上半年使用者體驗 ├─ #20 新版登入 ├─ #21 暗色模式 ├─ #22 載入動畫 └─ 進度由底下 issue 自動彙總
用 Epic 組織「大到一個 issue 裝不下」的工作,例如一整個季度的產品方向。
每個專案內建 Wiki(Markdown 撰寫),適合長文件與 SOP,定位與 GitHub Wiki 相同。 可與 CI 結合做成「自動生成文件」。(本站型態就是「Docs-as-Code」的另一種做法。)
1. 開 Issue(label + milestone + weight) 2. 從 Issue 一鍵開分支(feature/12-login-fix) 3. 開發 → push → 開 MR(Closes #12) 4. CI 跑(單元 6)→ 有人 Approve 5. 合併 → Issue 自動關閉、看板自動移動、 milestone 進度自動更新
1. 建 milestone「sprint-14」 2. 開 5 張 issue(各帶 do::1) 3. 設 Board 欄:do::1 / do::2 / review / done 4. Doing 欄 wip limit = 3 5. 每天把「正在做的」拖到 do::2
✅ 每張 issue 有 label + milestone
✅ 看板欄位與 label 對應
✅ Doing 不超過 3 張
✅ 合併 MR 後 issue 自動關、看板自動移
一個敏捷團隊每兩週一個 Sprint,需要從 Backlog 篩選工作、分配 weight、每日站會更新看板、Sprint 結束時統計完成率。
# 1. 建立 Milestone Milestone: Sprint 2026-W34 Duration: 2026-08-18 → 2026-08-29 # 2. 開 Issue(全部帶 label) #101 加入搜尋 API type::feature priority::high do::1 weight: 5 #102 修正登入 500 錯誤 type::bug priority::high do::1 weight: 2 #103 文件更新 type::doc priority::low do::1 weight: 1 #104 壓縮前端 bundle type::chore priority::medium do::1 weight: 3 #105 設定頁 RWD type::feature priority::medium do::1 weight: 3 # 3. 建 Board:欄位 = do::1 / do::2 / review / done # 4. WIP limit:Doing(do::2)最多 3 張 # 5. Sprint 篩選:在 Board 上方 Filter 設 milestone = Sprint 2026-W34
Scoped labels 是 GitLab 獨有的強大功能。當你在一個 issue 上加入 do::2(進行中),系統會自動移除同字首的 do::1(待辦)——實現「單選」效果。
| 字首都 | 選項範例 | 行為 |
|---|---|---|
do:: | do::1、do::2、review、done | 一張 issue 同時只能有一個 do:: 值 |
priority:: | priority::high、priority::low | 只能一個優先級 |
type:: | type::bug、type::feature | 只能一個類型 |
:: 作為 scoped delimiter。加入新 label 時,系統搜尋同字首都的既有 label 並自動移除。這讓 Board 的欄位拖曳、篩選器都可靠 label 自動對應,無需手動維護狀態。| 症狀 | 可能原因 | 解決方案 |
|---|---|---|
| Issue 拖曳到 Board 新欄位後,label 沒有自動更新 | 欄位對應的 label 名稱拼寫不完全一致(含空格或大小寫差異) | 到 Board 設定確認欄位對應的 label,確保與 issue 上的 label 完全相同 |
| Milestone 進度沒有包含某個 MR | MR 的 target 分支不在此 milestone 的專案,或 MR 未被合併 | 確認 MR 已 merged 且 target 在同一專案;Milestone 只統計已合併的 MR |
| 看板出現「幽靈卡片」——Issue 已關閉但仍顯示 | Board 設定未排除已關閉的 issue | 在 Board 篩選器加入 state=opened,或檢查 Board 是否設為「顯示所有」 |
| Epic 進度百分比不正確 | Epic 底下的 issue 有的不在同一群組,或 weight 未設定 | Epic 只能追蹤同群組下的 issue;確認所有子 issue 都有設定 weight |
| 多個 Board 之間的 issue 重複顯示 | Board 的 filter 設定重疊(例如一個按 milestone、一個沒篩選) | 為每個 Board 設明確的 filter(milestone + label),避免交叉顯示 |
.gitlab/issue_templates/),說明模板中應包含哪些欄位(步驟、預期、實際、優先級、相關 MR)。一個每兩週發一次的敏捷團隊,要把「issue 品質、label 詞彙、看板、里程碑、weight」標準化,讓 Sprint 可重複、可衡量。
agile-delivery/ ├── README.md # 團隊工作流總覽 ├── .gitlab/ │ └── issue_templates/ │ ├── bug.md # 含步驟/預期/實際/環境 │ └── feature.md # 含 acceptance criteria ├── docs/ │ ├── label-vocabulary.md # Label 詞彙表(type::/priority::/do::) │ ├── board-guide.md # 看板使用指南(wip limit) │ └── sprint-playbook.md # Sprint 流程手冊 └── data/ └── sprint-template.md # 每週 Sprint 開場模板
# docs/label-vocabulary.md(摘錄) type::bug | type::feature | type::chore priority::high | ::medium | ::low do::1(待辦)do::2(進行中)review | done # Scoped label:同字首只能一個,看板欄位自動對應 # .gitlab/issue_templates/feature.md(摘錄) ## 使用者故事 As a ..., I want to ..., so that ... ## 驗收標準(Acceptance Criteria) - [ ] 具體可勾選的條件 1 - [ ] 具體可勾選的條件 2
$ glab issue list --label "do::2" # 進行中的工作 !102 修正登入 500 do::2 priority::high weight 2 !104 壓縮前端 bundle do::2 priority::med weight 3 $ glab issue list --milestone "Sprint-14" --per-page 50 | wc -l 6 # 里程碑總張數 $ glab issue list --milestone "Sprint-14" --state closed | wc -l 4 # 已關閉張數 → 完成率 4/6
do:: scoped label 驅動看板,拖曳卡片=改 label,狀態不靠人工維護。| 面向 | gitlab | github | markdown | yaml | json |
|---|---|---|---|---|---|
| 任務單元 | Issue(與 MR 深度整合) | Issue | 文件中的任務清單 | — | — |
| 看板 | Issue Boards(label 驅動) | Projects(較輕量) | — | — | — |
| 里程碑 | Milestone(issue+MR 合計) | Milestone | 版本說明文件 | — | — |
| 標籤 | Scoped labels(互斥) | Labels(無 scope) | — | — | — |
| 工作量 | weight(內建) | 需第三方 | — | — | — |
- [ ] 已定義 label 詞彙表並寫進 docs/(全員可查) - [ ] 每張 issue 都符合模板(故事/驗收或步驟/預期/實際) - [ ] Board 欄位與 label 對應,Doing 已設 wip limit - [ ] Milestone 已掛 issue + MR,進度自動計算 - [ ] 已用 Epic 組織季度大目標 - [ ] 實測:MR 合併後 issue 自動關閉、看板自動移動