所有命令 · lifecycle

pm update

Update item fields and metadata.

Mutates existing item fields while preserving history and lock safety.

用法

pm update [options] [command] <id>

参数

<id>Item id必填

选项

--title, -t <value>Set title可选
--description, -d <value>Set description可选
--body, -b <value>Set body (allow empty string)可选
--status, -s <value>Set status (use close command for closed)可选
--close-reason <value>Set close reason可选
--priority, -p <value>Set priority可选
--type <value>Set type可选
--tags <value>Set comma-separated tags (replaces existing). Use --add-tags / --remove-tags to mutate additively.可选
--add-tags <value>Add tags to the existing list without replacing it (repeatable; CSV accepted)可选
--remove-tags <value>Remove tags from the existing list (repeatable; CSV accepted)可选
--deadline <value>Set deadline (ISO/date string or relative)可选
--estimate, --estimated-minutes <value>Set estimated minutes可选
--acceptance-criteria <value>Replace the complete acceptance-criteria list (repeatable values join with '; '); use --remove-ac plus --add-ac for one-entry repair可选
--add-ac <value>Add one semicolon-free acceptance criterion without replacing the existing list (repeatable)可选
--remove-ac <value>Remove one semicolon-free acceptance criterion by exact text match; fails if any selector is unmatched (repeatable)可选
--definition-of-ready <value>Set definition of ready可选
--order <value>Set planning order/rank integer可选
--goal <value>Set goal identifier可选
--objective <value>Set objective identifier可选
--value <value>Set business value summary可选
--impact <value>Set business impact summary可选
--outcome <value>Set expected outcome summary可选
--why-now <value>Set why-now rationale可选
--author <value>Mutation author可选
--message <value>Mutation message可选
--assignee <value>Set assignee可选
--parent <value>Set parent item ID可选
--allow-missing-parentAllow updating to an unresolved parent reference and emit a validation warning可选
--allow-unresolved-depsAllow unresolved local dependency targets and emit explicit warning receipts可选
--completed-at <value>Correct the actual completion timestamp on a terminal item可选
--reviewer <value>Set reviewer可选
--risk <value>Set risk level: low|med|medium|high|critical (med persists as medium)可选
--confidence <value>Set confidence level: 0..100|low|med|medium|high (med persists as medium)可选
--sprint <value>Set sprint identifier可选
--release <value>Set release identifier可选
--blocked-by <value>Set latest blocked-by item ID or reason; resolved item IDs append a blocked_by dependency edge可选
--blocked-reason <value>Set blocked reason可选
--unblock-note <value>Set unblock rationale note可选
--reporter <value>Set issue reporter可选
--severity <value>Set issue severity: low|med|medium|high|critical (med persists as medium)可选
--environment <value>Set issue environment context可选
--repro-steps <value>Set issue reproduction steps可选
--resolution <value>Set issue resolution summary可选
--expected-result <value>Set issue expected behavior可选
--expected <value>Short alias for --expected-result可选
--actual-result <value>Set issue observed behavior可选
--actual <value>Short alias for --actual-result可选
--affected-version <value>Set affected version identifier可选
--fixed-version <value>Set fixed version identifier可选
--component <value>Set issue component ownership可选
--regression [value]Set regression marker; bare flag means true, or pass true|false|1|0可选
--customer-impact <value>Set customer impact summary可选
--dep <value>Add dependency entries id=<id>,kind=<value>,author=<value>,created_at=<iso|now>,source_kind=<value> (repeatable)可选
--dep-remove <value>Remove by dependency id or exact row signature (repeatable)可选
--comment <value>Append comment seed author=<value>,created_at=<iso|now>,text=<value> (also accepts markdown pairs and - for stdin; repeatable)可选
--note <value>Append note seed author=<value>,created_at=<iso|now>,text=<value> (also accepts markdown pairs and - for stdin; repeatable)可选
--learning <value>Append learning seed author=<value>,created_at=<iso|now>,text=<value> (also accepts markdown pairs and - for stdin; repeatable)可选
--file <value>Append linked file path=<value>,scope=<project|global>,note=<text> (also accepts markdown pairs and - for stdin; repeatable)可选
--test <value>Append test command=<value>,path=<value>,scope=<project|global>,timeout_seconds=<n>,pm_context_mode=<schema|tracker|auto|none> (also accepts markdown pairs and - for stdin; repeatable)可选
--doc <value>Append linked doc path=<value>,scope=<project|global>,note=<text> (also accepts markdown pairs and - for stdin; repeatable)可选
--reminder <value>Set reminders at=<iso|relative>,text=<text> (also accepts markdown pairs and - for stdin; repeatable)可选
--event <value>Set events start=<iso|relative>,end=<iso|relative>,duration=<relative|30min|PT30M>,title=<text>,all_day=<true|false>,recur_* fields (also accepts markdown pairs and - for stdin; repeatable)可选
--type-option <value>Set type options key=value or key=<name>,value=<value> (also accepts key:value and markdown pairs; use - for stdin; repeatable)可选
--field <name=value>Set a field declared by an active extension registerItemFields registration (repeatable)可选
--unset <field>Clear scalar metadata field by name (repeatable)可选
--stdin-jsonRead a full item JSON document from stdin; explicit flags override document values可选
--body-file <path>Load body from a file or stdin (-); conflicts with --body可选
--replace-depsAtomically replace dependency entries with the provided --dep values可选
--replace-testsAtomically replace linked test entries with the provided --test values可选
--replace-filesAtomically replace linked file entries with the provided --file values可选
--replace-docsAtomically replace linked doc entries with the provided --doc values可选
--clear-depsClear dependency entries可选
--clear-commentsClear comments可选
--clear-notesClear notes可选
--clear-learningsClear learnings可选
--clear-filesClear linked files可选
--clear-testsClear linked tests可选
--clear-docsClear linked docs可选
--clear-remindersClear reminders可选
--clear-eventsClear events可选
--clear-type-optionsClear type options可选
--forceForce ownership override可选

示例

pm update pm-a1b2 --status in_progress --message "Start implementation"

相关命令