---
schema_version: "1"
id: 7f5411546ba61ffb7ae7454341e213954b762897c1cdd6bccfb79603338c89c5
title: devops work-item create
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_create.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-cli-reference/guide/cli_reference_devops_work-item_create.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: e066e76dddccbf813b2b0e5eb1e029a12d7c8b7a3ce849656cb4557c5aaffb7f
products:
  - Salesforce CLI Command Reference
  - salesforcedx
---
<!-- prettier-ignore-start -->

# devops work-item create

Create a new work item in a DevOps Center project.

## Description for devops work-item create

The command creates the work item using the Connect API. Requires a project ID and a subject for the new work item; run the `devops project list` command to get the IDs for all existing projects.

## 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> | <code>&#8209;d</code> | **Type:** Value<br><br>Description of the new work item; if not specified, the description is blank. |
| <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;project&#8209;id</code> | <code>&#8209;p</code> | **Type:** Value<br>**Required**<br><br>ID of the DevOps Center project to create the work item in. |
| <code>&#8209;&#8209;subject</code> | <code>&#8209;s</code> | **Type:** Value<br>**Required**<br><br>Subject (title) of the new 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. |

## Examples for devops work-item create

Create a work item for the project with the specified ID and give the work item the specified subject (title); use the DevOps Center org with alias "my-devops-org":

```shell
sf devops work-item create --target-org my-devops-org --project-id 1Qg000000000001 --subject "Fix login bug"
```

Create a work item with a subject and description:

```shell
sf devops work-item create --target-org my-devops-org --project-id 1Qg000000000001 --subject "Add dark mode" --description "Implement dark mode toggle in settings page"
```
<!-- prettier-ignore-end -->
