devops work-item prepare

Prepare a work item for one-off promotion between pipeline stages.

Prepares a work item for one-off promotion by creating the necessary branches and pull requests in the source control repository. Run this command before running “sf devops work-item promote” for a one-off promotion.

Use “sf devops work-item list” to find the work item ID and target stage ID for a project.

Flag Name (Long)Flag Name (Short)Description
‑‑api‑versionN/AType: Value

Override the api version used for api requests made by this command
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑jsonN/AType: Boolean

Format output as json.
‑‑target‑org‑oType: Value
Required

Username or alias of the target org. Not required if the target-org configuration variable is already set.
‑‑target‑stage‑id‑tType: Value
Required

ID of the pipeline stage to promote the work item to.
‑‑work‑item‑id‑iType: Value
Required

ID of the work item to prepare for one-off promotion.

Prepare a work item for one-off promotion to the UAT stage:

Prepare a work item using a DevOps Center org username: