Update a work item in DevOps Center.
Description for devops work-item update
Update the subject, description, or status of a work item. At least one of --subject, --description, or --status must be provided.
Flags
| Flag Name (Long) | Flag Name (Short) | Description |
|---|---|---|
| <code>‑‑api‑version</code> | N/A | Type: Value<br><br>Override the api version used for api requests made by this command |
| <code>‑‑description</code> | N/A | Type: Value<br><br>New description for the work item. |
| <code>‑‑flags‑dir</code> | N/A | Type: Value<br><br>Import flag values from a directory. |
| <code>‑‑json</code> | N/A | Type: Boolean<br><br>Format output as json. |
| <code>‑‑status</code> | N/A | Type: Value<br>Valid Values: In Progress, Ready to Promote<br><br>New status for the work item. Allowed values: "In Progress", "Ready to Promote". |
| <code>‑‑subject</code> | N/A | Type: Value<br><br>New subject for the work item. |
| <code>‑‑target‑org</code> | <code>‑o</code> | Type: Value<br>Required<br><br>Username or alias of the target org. Not required if the target-org configuration variable is already set. |
| <code>‑‑work‑item‑id</code> | <code>‑w</code> | Type: Value<br><br>ID of the work item. |
| <code>‑‑work‑item‑name</code> | <code>‑n</code> | Type: Value<br><br>Name of the work item, such as WI-000001. |
Examples for devops work-item update
Update the subject of a work item by name:
sf devops work-item update --target-org my-devops-org --work-item-name WI-000001 --subject "Fix login bug"
Update the status of a work item by ID:
sf devops work-item update --target-org my-devops-org --work-item-id 0Wx000000000001 --status "In Progress"
Update multiple fields at once:
sf devops work-item update --target-org my-devops-org --work-item-name WI-000001 --subject "Fix login bug" --description "Users can't log in on mobile" --status "In Progress"
<!-- prettier-ignore-end -->