---
sourceDocument: Australia IT Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/it-service-management

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia IT Service Management

ft:clusterId :

    - itsm

bundleId :

    - itsm

workflow :

    - Technology


---

# Update change request details in Jenkins pipeline

# Update change request details in Jenkins pipeline {#ariaid-title1}

Release version: Australia  
Updated March 12, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Update the change request details associated with a Jenkins pipeline by running the
snDevOpsUpdateChangeInfo script in the pipeline.

## Before you begin

Role required: Jenkins admin

## 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.
{#update-change-request-details-in-jenkins-pipeline__ul_yqb_hc1_bwb}

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)
{#update-change-request-details-in-jenkins-pipeline__ul_uwb_kc1_bwb}

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.

## Procedure

1. In your Jenkins dashboard, open the pipeline for which you want to update the change request details.
2. Navigate to Configure \> Pipeline.
3. In the Pipeline script section, update the snDevOpsUpdateChangeInfo script with the following input parameters:  
   * Change request number whose details need to be updated.
   * Change request details to be updated as Key:Value pairs.

   {#update-change-request-details-in-jenkins-pipeline__ul_pyx_l21_bwb}  

       { "short_description": "Test description", "priority": "1", "start_date": "2021-02-05 08:00:00", 
       "end_date": "2022-04-05 08:00:00", "justification": "test justification", "description": "test description", 
       "cab_required": <true/false>, "comments": "This update for work notes is from jenkins file", "work_notes": "test work notes", 
       "assignment_group": "<SYS_ID>", "state":"<STATE_CODE>", "close_code":"<successful/successful_issues/unsuccessful>", "reason":"<As per Choice List>" 

4. Save the script.
5. Navigate to DevOps \> Orchestrate \> Pipeline Change Requests.
6. Select the change record associated with the pipeline.
7. Approve the change request by selecting  Approved  in the  State  field.
8. In Jenkins, open the pipeline for which you are updating the change request details.
9. Select Build Now.  
   The change request details specified in step 3 will be updated for the pipeline.

