# devops work-item list

List all work items for a DevOps Center project.

## Description for devops work-item list

Each work item displays the branch, environment, and repository details needed for checkout and promotion. Requires a project ID; run the `devops project list` command to get the IDs for all existing projects.

## Flags

| Flag Name (Long) | Flag Name (Short) | Description                                                                                                                                         |
| ---------------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--api-version`  | N/A               | **Type:** Value<br><br>Override the api version used for api requests made by this command                                                          |
| `--flags-dir`    | N/A               | **Type:** Value<br><br>Import flag values from a directory.                                                                                         |
| `--json`         | N/A               | **Type:** Boolean<br><br>Format output as json.                                                                                                     |
| `--project-id`   | `-p`              | **Type:** Value<br>**Required**<br><br>ID of the DevOps Center project to list work items for.                                                      |
| `--target-org`   | `-o`              | **Type:** Value<br>**Required**<br><br>Username or alias of the target org. Not required if the `target-org` configuration variable is already set. |

## Examples for devops work-item list

List work items for a specific project in the DevOps org with alias "my-devops-org":

```shell
sf devops work-item list --target-org my-devops-org --project-id 1Qg000000000001
```

List work items using JSON output:

```shell
sf devops work-item list --target-org my-devops-org --project-id 1Qg000000000001 --json
```
