Close Change operation for ServiceNow


The Close Change operation closes a change record.

The following table describes the elements for this request. If not specified, the valid value for an element must be assumed to be a string.

 Adapter request elements for Close Change operation

The following figure displays a sample adapter request for the operation: 

 Sample adapter request for the Close Change operation

<service-now-request>
   <operation-name>update-change</operation-name>
   <proxy-settings>
     <host>10.129.94.127</host>
     <port>8080</port>
     <user-name>tso</user-name>
     <password>****MASKED****</password>
   </proxy-settings>
   <arguments>
     <connection-parameters>
       <user-name>admin</user-name>
       <password>****MASKED****</password>
     </connection-parameters>
     <query>
       <number>CHG0030004</number>
       <assigned-to>Manifah Masood</assigned-to>
       <requested-by>ITIL User</requested-by>
       <short-description>short desc11</short-description>
       <category>Other</category>
       <type>normal</type>
       <state>0</state>
       <risk>Moderate</risk>
       <priority>Low</priority>
       <work-notes>my notes</work-notes>
       <backout-plan>backout plan</backout-plan>
       <test-plan>test plan</test-plan>
     </query>
     <update>
       <state />
       <close-notes>Patch applied</close-notes>
     </update>
   </arguments>
 </service-now-request>

The following figure shows the adapter response for the sample request:
Sample adapter response for the Close Change operation

 
<service-now-response>
 <metadata>
   <response-count>1</response-count>
   <status>success</status>
 </metadata>
 <responses>
   <response>
     <metadata>
       <count>1</count>
     </metadata>
     <item>
       <metadata>
         <status>success</status>
       </metadata>
       <parameters>
         <active>0</active>
         <approval>Approved</approval>
         <approval-set>2010-05-14 09:33:16</approval-set>
         <assigned-to>Don Goodliffe</assigned-to>
         <backout-plan>backout plan</backout-plan>
         <category>Other</category>
         <change-plan>change plan</change-plan>
         <cmdb-ci>*JEMPLOYEE-IBM</cmdb-ci>
         <contact-type>Phone</contact-type>
         <description>desc</description>
         <end-date>2010-03-29 20:30:50</end-date>
         <escalation>Normal</escalation>
         <impact>3 - Low</impact>
         <knowledge>0</knowledge>
         <made-sla>1</made-sla>
         <number>JS-CHG-0007</number>
         <opened-at>2010-04-14 10:48:53</opened-at>
         <opened-by>System Administrator</opened-by>
         <order>0</order>
         <phase>Requested</phase>
         <phase-state>-5</phase-state>
         <priority>4 - Low</priority>
         <production-system>0</production-system>
         <requested-by>ITIL User</requested-by>
         <requested-by-date>2010-03-29 20:30:45</requested-by-date>
         <review-status>(3)</review-status>
         <risk>Moderate</risk>
         <scope>Medium</scope>
         <short-description>short desc</short-description>
         <start-date>2010-03-29 20:30:48</start-date>
         <sys-class-name>Change Request</sys-class-name>
         <sys-created-by>admin</sys-created-by>
         <sys-created-on>2010-04-14 10:48:53</sys-created-on>
         <sys-domain>global</sys-domain>
         <sys-id>fbef90044a362305018970999f10475b</sys-id>
         <sys-mod-count>3</sys-mod-count>
         <sys-updated-by>admin</sys-updated-by>
         <sys-updated-on>2010-05-19 06:57:50</sys-updated-on>
         <test-plan>test plan</test-plan>
         <type>Comprehensive</type>
         <upon-approval>Proceed to Next Task</upon-approval>
         <upon-reject>Cancel all future Tasks</upon-reject>
         <urgency>3 - Low</urgency>
         <work-end>2010-03-29 20:30:56</work-end>
         <work-start>2010-03-29 20:30:53</work-start>
       </parameters>
     </item>
   </response>
 </responses>
</service-now-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*