所有命令 · lifecycle

pm close many

Bulk-close matched items with a shared reason and full runClose semantics (dry-run + rollback checkpoint).

Bulk-closes matched items with a shared reason routed through full pm close semantics (close validation, active-child orphan checks, blocked-edge cleanup) plus dry-run previews and rollback checkpoints — unlike update-many --status closed, which bypasses close validation.

用法

pm close many [options]

选项

--filter-status <value>Filter by status before closing可选
--filter-type <value>Filter by item type before closing可选
--filter-tag <value>Filter by tag before closing可选
--filter-priority <value>Filter by priority before closing可选
--filter-deadline-before <value>Filter by deadline upper bound before closing可选
--filter-deadline-after <value>Filter by deadline lower bound before closing可选
--filter-updated-after <value>Filter by updated_at lower bound before closing (ISO/relative)可选
--filter-updated-before <value>Filter by updated_at upper bound before closing (ISO/relative)可选
--filter-created-after <value>Filter by created_at lower bound before closing (ISO/relative)可选
--filter-created-before <value>Filter by created_at upper bound before closing (ISO/relative)可选
--filter-assignee <value>Filter by assignee before closing可选
--filter-assignee-filter <value>Filter assignee presence: assigned|unassigned before closing可选
--filter-parent <value>Filter by parent item ID before closing可选
--filter-sprint <value>Filter by sprint before closing可选
--filter-release <value>Filter by release before closing可选
--filter-has-notesSelect only items that have notes before closing可选
--filter-no-notesSelect only items that have no notes before closing可选
--filter-has-learningsSelect only items that have learnings before closing可选
--filter-no-learningsSelect only items that have no learnings before closing可选
--filter-has-filesSelect only items that have linked files before closing可选
--filter-no-filesSelect only items that have no linked files before closing可选
--filter-has-docsSelect only items that have linked docs before closing可选
--filter-no-docsSelect only items that have no linked docs before closing可选
--filter-has-testsSelect only items that have linked tests before closing可选
--filter-no-testsSelect only items that have no linked tests before closing可选
--filter-has-commentsSelect only items that have comments before closing可选
--filter-no-commentsSelect only items that have no comments before closing可选
--filter-has-depsSelect only items that have dependencies before closing可选
--filter-no-depsSelect only items that have no dependencies before closing可选
--filter-has-bodySelect only items that have a non-empty body before closing可选
--filter-empty-bodySelect only items with an empty body before closing可选
--filter-has-linked-commandSelect only items whose linked tests carry a runnable command before closing可选
--filter-no-linked-commandSelect only items whose linked tests carry no runnable command before closing可选
--filter-reviewer-missingSelect only items missing reviewer before closing可选
--filter-risk-missingSelect only items missing risk before closing可选
--filter-confidence-missingSelect only items missing confidence before closing可选
--filter-sprint-missingSelect only items missing sprint before closing可选
--filter-release-missingSelect only items missing release before closing可选
--ids <value>Explicit ID allowlist: comma/newline text, - stdin, or @path file可选
--limit <n>Limit matched item count before apply/preview可选
--offset <n>Skip first n matched rows before apply/preview可选
--reason <value>Shared close reason applied to matched items (required when governance.require_close_reason is enabled)可选
--completed-at <value>Actual completion timestamp (ISO or relative) applied to every matched item可选
--resolution <value>Shared closure resolution applied to every matched item (closure-validation field)可选
--expected-result <value>Shared expected-result note (closure-validation field)可选
--expected <value>Short alias for --expected-result可选
--actual-result <value>Shared actual-result note (closure-validation field)可选
--actual <value>Short alias for --actual-result可选
--validate-close [mode]Validate closure metadata per item: "off", "warn", or "strict" (default: settings governance preset)可选
--author <value>Mutation author可选
--message <value>History message可选
--forceRe-close already-terminal matches and override ownership可选
--dry-runPreview matched items + per-item skip/active-child plan without mutating可选
--rollback <value>Rollback a prior close-many checkpoint ID可选
--no-checkpointDisable checkpoint creation during apply mode可选

示例

pm close many --filter-sprint S-12 --reason "Sprint S-12 acceptance criteria met" --dry-run

相关命令