---
schema_version: "1"
id: 4ab9f2fa87d94b598cbffae8054d98394b1a7d511173f7956eaa2ea8fd3c846f
title: devops work-item update
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforcedx/sfclireference/guides/devops/cli_reference_devops_work-item_update.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-cli-reference/guide/cli_reference_devops_work-item_update.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1a79db95aabe1093001ae2d509f8747c30bf67ca4f1d87e497e2f6f3db3c7b54
products:
  - Salesforce CLI Command Reference
  - salesforcedx
---
<!-- prettier-ignore-start -->

# devops work-item update

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>&#8209;&#8209;api&#8209;version</code> | N/A | **Type:** Value<br><br>Override the api version used for api requests made by this command |
| <code>&#8209;&#8209;description</code> | N/A | **Type:** Value<br><br>New description for the work item. |
| <code>&#8209;&#8209;flags&#8209;dir</code> | N/A | **Type:** Value<br><br>Import flag values from a directory. |
| <code>&#8209;&#8209;json</code> | N/A | **Type:** Boolean<br><br>Format output as json. |
| <code>&#8209;&#8209;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>&#8209;&#8209;subject</code> | N/A | **Type:** Value<br><br>New subject for the work item. |
| <code>&#8209;&#8209;target&#8209;org</code> | <code>&#8209;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>&#8209;&#8209;work&#8209;item&#8209;id</code> | <code>&#8209;w</code> | **Type:** Value<br><br>ID of the work item. |
| <code>&#8209;&#8209;work&#8209;item&#8209;name</code> | <code>&#8209;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:

```shell
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:

```shell
sf devops work-item update --target-org my-devops-org --work-item-id 0Wx000000000001 --status "In Progress"
```

Update multiple fields at once:

```shell
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 -->
