Update Problem operation


The Update Problem operation updates a problem record.

The following table describes the elements of the <items> XML element and the adapter request. If the valid value for an element is not specified, the valid value must be assumed to be a string.

If no value is specified for a particular element or the element is skipped, the associated field will not be updated.

 Elements for the <items> XML element and adapter request for the Update Problem operation

The following figure displays a sample adapter request for the Update Problem operation.

Sample adapter request for the Update Problem operation


 <hp-service-manager-request>
   <entity>problem</entity>
   <entity-type />
   <request>
     <operation-name>update-problem</operation-name>
     <parameters>
       <update-problem-request>
         <model>
           <keys>
             <id>
               <value>PM10073</value>
               <type>String</type>
             </id>
           </keys>
           <instance>
             <id>
               <value>PM10073</value>
               <type>String</type>
             </id>
             <product-type>
               <value>data or file incorrect</value>
               <type>String</type>
             </product-type>
             <subcategory>
               <value>data</value>
               <type>String</type>
             </subcategory>
             <problem-type>
               <value>problem</value>
               <type>String</type>
             </problem-type>
             <initial-impact>
               <value>4</value>
               <type>String</type>
             </initial-impact>
             <severity>
               <value>4</value>
               <type>String</type>
             </severity>
             <description>
               <type>Array</type>
               <description>
                 <element>
                   <value>description line 124</value>
                   <type>String</type>
                 </element>
                 <element>
                   <value>description line 2234</value>
                   <type>String</type>
                 </element>
               </description>
             </description>
             <assignment>
               <value>E-mail / Webmail (South America)</value>
               <type>String</type>
             </assignment>
             <status>
               <value>Status</value>
               <type>String</type>
             </status>
             <brief-description>
               <value>brief description3</value>
               <type>String</type>
             </brief-description>
             <root-cause>
               <type>Array</type>
               <root-cause>
                 <element>
                   <value>root cause line 13</value>
                   <type>String</type>
                 </element>
                 <element>
                   <value>root cause line 223</value>
                   <type>String</type>
                 </element>
               </root-cause>
             </root-cause>
             <update>
               <type>Array</type>
             <update>
                 <element>
                   <value>update line 314</value>
                   <type>String</type>
                 </element>
                 <element>
                   <value>update line 234</value>
                   <type>String</type>
                 </element>
               </update>
             </update>
             <open>
               <value>true</value>
               <type>Boolean</type>
             </open>
             <opened-by>
               <value>opened by</value>
               <type>String</type>
             </opened-by>
             <updated-by>
               <value>updated by</value>
               <type>String</type>
             </updated-by>
             <closed-by>
               <value>closed by</value>
               <type>String</type>
             </closed-by>
             <reopened-by>
               <value>reopened by</value>
               <type>String</type>
             </reopened-by>
             <priority-code>
               <value>1</value>
               <type>String</type>
             </priority-code>
             <sysmodcount>
               <value>2</value>
               <type>Decimal</type>
             </sysmodcount>
             <sysmoduser>
               <value>sysmoduser</value>
               <type>String</type>
             </sysmoduser>
             <assignee-name>
               <value>assignee name</value>
               <type>String</type>
             </assignee-name>
             <workaround>
               <type>workaround</type>
               <workaround>
                 <element>
                   <value>workaround line 12</value>
                   <type>String</type>
                 </element>
                 <element>
                   <value>workaround line 222</value>
                   <type>String</type>
                 </element>
               </workaround>
             </workaround>
             <affected-item>
               <value>Intranet / Internet (Africa)</value>
               <type>String</type>
             </affected-item>
           </instance>
         </model>
       </update-problem-request>
     </parameters>
   </request>
 </hp-service-manager-request>

The following figure displays an adapter response for the Update Problem operation.

Sample adapter response for the Update Problem operation


<hp-service-manager-response>
 <metadata>
   <count>1</count>
 </metadata>
 <responses>
   <response>
     <metadata>
       <count>1</count>
     </metadata>
     <item>
       <metadata>
         <status>success</status>
       </metadata>
       <parameters>
         <model>
           <keys>
             <id>
               <value>PM10073</value>
               <type>String</type>
             </id>
           </keys>
           <instance>
             <id>
               <value>PM10073</value>
               <type>String</type>
             </id>
             <category>
               <value>BPPM</value>
               <type>String</type>
             </category>
             <assignment>
               <value>E-mail / Webmail (South America)</value>
               </assignment><type>String</type>
             </assignment>
             <status>
               <value>Status</value>
               <type>String</type>
             </status>
             <brief-description>
               <value>brief description3</value>
               <type>String</type>
             </brief-description>
             <description>
               <type>Array</type>
               <description>
                 <element>
                   <value>description line 124</value>
                   <type>String</type>
                 </element>
                 <element>
                   <value>description line 2234</value>
                   <type>String</type>
                 </element>
               </description>
             </description>
             <root-cause>
               <type>Array</type>
               <root-cause>
                 <element>
                   <value>root cause line 13</value>
                   <type>String</type>
                 </element>
                 <element>
                   <value>root cause line 223</value>
                   <type>String</type>
                 </element>
               </root-cause>
             </root-cause>
             <update>
               <type>Array</type>
               <update>
                 <element>
                   <value>update line 314</value>
                   <type>String</type>
                 </element>
                 <element>
                   <value>update line 234</value>
                   <type>String</type>
                 </element>
               </update>
             </update>
             <priority-code>
               <value>4</value>
               <type>String</type>
             </priority-code>
             <severity>
               <value>4</value>
               <type>String</type>
             </severity>
             <subcategory>
               <value>data</value>
               <type>String</type>
             </subcategory>
             <product-type>
               <value>data or file incorrect</value>
               <type>String</type>
             </product-type>
             <problem-type>
               <value>problem</value>
               <type>String</type>
             </problem-type>
             <workaround>
               <type>Array</type>
               <workaround>
                 <element>
                   <value>workaround line 12</value>
                   <type>String</type>
                 </element>
                 <element>
                   <value>workaround line 222</value>
                   <type>String</type>
                 </element>
               </workaround>
             </workaround>
             <incident-category>
               <value>problem</value>
               <type>String</type>
             </incident-category>
             <initial-impact>
               <value>4</value>
               <type>String</type>
             </initial-impact>
             <affected-item>
               <value>Intranet / Internet (Africa)</value>
               <type>String</type>
             </affected-item>
             <uniquequery>id="PM10073"</uniquequery>
             <recordid>PM10073 - BPPM - Status - brief description3</recordid>
           </instance>
         </model>
         <messages>
           <element>
             <value>Problem PM10073 has been updated by falcon.</value>
           </element>
         </messages>
         <status>SUCCESS</status>
         <message>Success</message>
         <schema-revision-date>2010.02.01 00:00:00</schema-revision-date>
         <schema-revision-level>3</schema-revision-level>
         <return-code>0</return-code>
       </parameters>
     </item>
   </response>
 </responses>
</hp-service-manager-response>

 

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