devops work-item combine

Prepare work items to be combined for custom promotion.

Description for devops work-item combine 

Use this command when work items in the same stage share metadata or have dependencies. DevOps Center combines the selected work items so they can be promoted together during custom promotion.

After running this command, use “sf devops work-item promote” with the parent work item ID to complete the promotion. The combined work items are promoted as a single unit.

Flags 

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

Override the api version used for api requests made by this command
‑‑child‑work‑item‑idN/AType: Value
Required

ID of a work item to combine.

Specify this flag multiple times to combine multiple work items with the parent.
‑‑flags‑dirN/AType: Value

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

Format output as json.
‑‑parent‑work‑item‑idN/AType: Value
Required

ID of the parent work item.

The parent work item is the primary work item that continues through the pipeline. Changes from all child work items are merged into the parent’s branch during promotion.
‑‑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 combined work item to.

Examples for devops work-item combine 

Prepare three work items to be combined to prevent conflicts during promotion:

1sf devops work-item combine --target-org my-devops-org --parent-work-item-id 0Wx000000000001 --child-work-item-id 0Wx000000000002 --child-work-item-id 0Wx000000000003 --target-stage-id 05S000000000002