所有命令 · lifecycle

pm close

Close an item. Close reason requirement follows governance.require_close_reason.

Transitions work to terminal closed state with explicit rationale.

用法

pm close [options] [command] <id> [text]

参数

<id>Item id必填
<text>Close reason text (alias: --reason)可选

选项

--release-assignmentRelease ownership after closure可选
-r, --reason <value>Close reason text (alias for positional <text>)可选
--close-reason <value>Close reason text (alias for positional <text>)可选
--completed-at <value>Actual completion timestamp (ISO or relative), distinct from tracker close time可选
-d, --duplicate-of <id>Close as a duplicate of the canonical item id and auto-fill duplicate closure metadata可选
--author <value>Mutation author可选
-m, --message <value>History message可选
--validate-close [mode]Validate closure metadata before close: "off", "warn", or "strict" (default: settings governance preset)可选
--resolution <value>Closure resolution summary (checked by --validate-close strict)可选
--expected-result <value>Expected outcome for closure validation可选
--expected <value>Short alias for --expected-result可选
--actual-result <value>Observed outcome for closure validation可选
--actual <value>Short alias for --actual-result可选
--forceForce ownership override可选

示例

pm close pm-a1b2 "Done" --release-assignment --validate-close warn

相关命令