---
schema_version: "1"
id: b6f25fe55117a5d11bc1e3ce355c405479861ea7068c5462aaf11e0cd0359cd9
title: DevopsPipelnStgPromWkItem
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_devopspipelnstgpromwkitem.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_devopspipelnstgpromwkitem.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d650f90ec6ad71bb68feb6cf86ca8392b9b7516479a32b850aa835f14262b020
description: Represents the association between a work item and a pipeline stage promotion. The object tracks the merge status of the work item into the target stage branch in source control. This object is available in API version 66.0 and later.
---
# DevopsPipelnStgPromWkItem

Represents the association between a work item and a pipeline stage promotion. The object tracks the merge status of the work item into the target stage branch in source control. This object is available in API version 66.0 and later.

## Supported Calls

create(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), update(), upsert()

## Fields

| Field | Details |
| --- | --- |
| DevopsPipelnStgPromId | 
Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the parent pipeline stage promotion record.

This field is a relationship field.

Relationship Name

DevopsPipelnStgProm

Relationship Type

Master-detail

Refers To

DevopsPipelnStgProm (the parent object)



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last accessed this record indirectly, for example, through a list view or related record.



 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last viewed this record or list view. If this value is null, and LastReferenceDate is not null, the user accessed this record or list view indirectly.



 |
| MergeCompletionDate | 

Type

dateTime

Properties

Create, Filter, Nillable, Sort, Update

Description

The date and time when the merge operation for this specific work item was completed in the source control system.



 |
| MergeRemoteReference | 

Type

string

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

A unique reference identifier from the remote source control provider, such as a Pull Request ID, for the merge associated with this promotion.



 |
| MergeSourceBranchId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The ID of the source branch in the repository from which changes were merged for this work item during this promotion.

This field is a relationship field.

Relationship Name

MergeSourceBranch

Refers To

SourceCodeRepositoryBranch



 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

A unique identifier for the pipeline stage promotion work item record.



 |
| WorkItemId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

The ID of the work item that is promoted.

This field is a relationship field.

Relationship Name

WorkItem

Refers To

WorkItem



 |

## Usage

Use this object to track how individual work items move forward through the release lifecycle. When a work item is promoted, either individually as part of custom promotion or as part of a stage promotion, this record captures the source branch information and the completion status of the merge operation in the source control system.

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[DevopsPipelnStgPromWkItemChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm)

Change events are available for the object.

[DevopsPipelnStgPromWkItemFeed](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_associated_objects_feed.htm)

Feed tracking is available for the object.

[DevopsPipelnStgPromWkItemHistory](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm)

History is available for tracked fields of the object.

[DevopsPipelnStgPromWkItemOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm)

Sharing rules are available for the object.

[DevopsPipelnStgPromWkItemShare](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm)

Sharing is available for the object.

#### See Also

- [WorkItem](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_workitem.htm "Represents a logical unit of work, such as a user story, task, or bug, used to track the progress of metadata and configuration data changes within a Lifecycle Center project. A work item moves through multiple development lifecycle stages until all development work is complete and the work item is part of the release pipeline. This object is available in API version 67.0 and later.")
- [DevopsPipelineStage](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_devopspipelinestage.htm "Represents a connection between a pipeline, an environment, and the source control branch used for that stage. The collection of all pipeline stages in a project make up the Lifecycle Center pipeline. This object is available in API version 66.0 and later.")
- [SourceCodeRepositoryBranch](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_sourcecoderepositorybranch.htm "Represents a specific branch within a source control repository, such as a feature branch for a work item or a release branch for a pipeline stage. Work Item and Pipeline Stage records refer to this object. This object is available in API version 66.0 and later.")