Get and update change request details in Azure DevOps pipeline
Get and update the change request details associated with an Azure DevOps pipeline.
Before you begin
Ensure that you meet the following prerequisites before you perform this procedure:
- Connect, configure the Azure DevOps tool and discover existing repositories, orchestration tasks, and pipelines.
- Install the following custom extension tasks on your Azure DevOps instance.
- ServiceNow extension to integrate Azure Pipelines with DevOps Change Velocity. For more information, see Use the ServiceNow DevOps extension for Azure DevOps and Azure DevOps custom actions.
Role required:
- admin or sn_devops.admin in DevOps Change Velocity
- admin in Azure DevOps
About this task
When you update the state parameter in a change request, only the following transitions are supported:
- cancel: Change request state must be implement to move the state to cancel. reason is a mandatory input to update the state to canceled.
- closed: Change request state must be implement or post implement to move the state to close. close_code and close_notes are mandatory input to update the state to closed.
Specify the change request state as an integer value:
- 4 - Cancel (Value set in the sn_devops.change_request.cancel_state property)
- 3 - Closed (Value set in the sn_devops.change_request.closed_state property)
When you update a choice field, you must specify a valid choice value that is available in the corresponding choice list. For example, the choice list values for the Close code field are successful, successful_issues, and unsuccessful.