Skip to content

Batch Operations zh TW

KoukeNeko edited this page Sep 9, 2026 · 3 revisions

Batch Operations

English · 繁體中文

批次建立

printf '%s\n' "First issue" "Second issue" > issues.txt
taiga batch create issue issues.txt --sprint sprint-27 --dry-run --json
taiga batch create issue issues.txt --sprint sprint-27 --yes --json

cat stories.txt | taiga batch create story - --status New --yes
taiga batch create task tasks.txt --story 51 --yes
taiga batch create epic epics.txt --yes

輸入檔中每一個非空白行是一個 subject,上限 1000 筆與 4 MiB。用 - 可從 stdin 讀取。

同一批可以套用共同的 --status。Issue 可指定共同的 --sprint;Task 必須有 Sprint,可以直接給 --sprint,或用 --story 從 parent Story 推導。

限制

Taiga 的原生 bulk endpoint 不支援每筆不同的 description 或 assignee,也不保證跨資源的原子交易。 需要逐筆設定不同欄位時,請用單筆的 create 指令。

CLI 在收到成功回應後會核對回傳的筆數。若數量與送出的不一致,回報 ambiguous_commit 並要求你先 list 確認實際結果,避免盲目重送造成重複建立。非互動執行必須提供 --yes。

批次搬移與排序

taiga batch move story --id 101,102 --sprint sprint-28 --yes
taiga batch reorder story --view kanban --id 102,101 --status "In progress" --swimlane Backend --yes
taiga batch reorder task --view taskboard --order 501=1 --order 502=2 --status "In progress" --yes

batch move 與 batch reorder 支援 story、task 與 issue,使用 Taiga 的原生 bulk endpoint。

reorder 需要指定 --view(例如 kanban、taskboard、backlog),因為排序是相對於特定看板視圖的。 可以用 --id 給出完整順序,或用 --order <id>=<position> 指定個別位置。

Clone this wiki locally