Work Item Open Change Request (sf_devops__Work_Item_Open_Change_Request__e)

Notifies subscribers whenever a change request (pull request) is opened for a work item. This object is available in API version 62.0 and later.

This event occurs whether the change request was initiated in DevOps Center or directly in the source control system. For changes made in feature branches, the change request is associated with the first pipeline stage. After a promotion to a pipeline stage, the event is generated for the next pipeline stage. This event is generated after a promotion as well as when a change request is opened for the next pipeline stage.

Supported Calls 

create(), describeSObjects()

Supported Subscribers 

SubscriberSupported?
Apex TriggersYes
FlowsYes
ProcessesYes
Pub/Sub APIYes
Streaming API (CometD)Yes

Streaming API Subscription Channel 

/event/sf_devops__Work_Item_Open_Change_Request__e

Event Delivery Allocation Enforced 

Yes

Special Access Rules 

DevOps Center package version 8.2 or later must be installed in the org.

Fields 

FieldTypePropertiesDescription
EventUuidstringNillableThe unique ID of the event, which is shared with the corresponding storage object. For example, 0a4779b0-0da1-4619-a373-0a36991dff90. Use this field to correlate the event with its storage object.
ReplayIdstringNillableRepresents an ID value that is populated by the system and refers to the position of the event in the event stream. Replay ID values aren’t guaranteed to be contiguous for consecutive events. A subscriber can store a replay ID value and use it on resubscription to retrieve missed events that are within the retention window.
sf_devops__Remote_Reference__cstringCreate, NillableThe unique ID of the change request in the source control system.
sf_devops__Target_Stage_Id__cstringCreate, NillableThe ID of the pipeline stage where the change request will be merged.
sf_devops__Work_Item_Id__cstringCreate, NillableThe ID of the work item associated with the newly created change request