devops work-item combine
Prepare work items to be combined for custom promotion.
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.
| Flag Name (Long) | Flag Name (Short) | Description |
|---|---|---|
‑‑api‑version | N/A | Type: Value Override the api version used for api requests made by this command |
‑‑child‑work‑item‑id | N/A | Type: Value Required ID of a work item to combine. Specify this flag multiple times to combine multiple work items with the parent. |
‑‑flags‑dir | N/A | Type: Value Import flag values from a directory. |
‑‑json | N/A | Type: Boolean Format output as json. |
‑‑parent‑work‑item‑id | N/A | Type: 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 | ‑o | Type: Value Required Username or alias of the target org. Not required if the target-org configuration variable is already set. |
‑‑target‑stage‑id | ‑t | Type: Value Required ID of the pipeline stage to promote the combined work item to. |
Prepare three work items to be combined to prevent conflicts during promotion: