Move Task To Next Phase operation
The Move Task To Next Phase operation moves a task record to the next phase.
The following table describes the elements of the <items> XML element and the adapter request. If not specified, the valid value for an element is assumed to be a string.
Elements for the <items> XML element and adapter request for the Move Task To Next Phase operation
The following figure displays the sample adapter request for the Move Task To Next Phase operation.
Sample adapter request for the Move Task To Next Phase operation
<hp-service-manager-request>
<entity>change</entity>
<entity-type>task</entity-type>
<request>
<operation-name>move-to-next-phase-change-task</operation-name>
<parameters>
<move-to-next-phase-change-task-request>
<model>
<keys>
<task-number>
<value>T69</value>
<type>String</type>
</task-number>
</keys>
<instance>
<header>
<type>Structure</type>
<category>
<value>Hardware</value>
<type>String</type>
</category>
<assignee-dept>
<value>Hardware</value>
<type>String</type>
</assignee-dept>
<phase>
<value>Hardware</value>
<type>String</type>
</phase>
<parent-change>
<value>C10177</value>
<type>String</type>
</parent-change>
</header>
<description-structure>
<type>Structure</type>
<description>
<type>Array</type>
<description>
<!--zero or more array elements follow-->
<element>
<value>description line 1</value>
<type>String</type>
</element>
<element>
<value>description line 2</value>
<type>String</type>
</element>
</description>
</description>
</description-structure>
<middle>
<type>Structure</type>
<product-number>
<value>product number</value>
<type>String</type>
</product-number>
<configuration-item>
<value>Norton Anti-Virus</value>
<type>String</type>
</configuration-item>
<location>
<value>location</value>
<type>String</type>
</location>
<misc1>
<value>misc1</value>
<type>String</type>
</misc1>
...
<misc10>
<value>misc10</value>
<type>String</type>
</misc10>
<brief-description>
<value>brief description</value>
<type>String</type>
</brief-description>
<downtime-start>
<value>2008.11.01 08:00:00</value>
<type>DateTime</type>
</downtime-start>
<downtime-end>
<value>2009.11.01 08:00:00</value>
<type>DateTime</type>
</downtime-end>
<installation-date>
<value>2008.11.01 08:00:00</value>
<type>DateTime</type>
</installation-date>
<misc-array1>
<type>Array</type>
<misc-array1>
<element>
<value>misc array 1 - 1</value>
<type>String</type>
</element>
<element>
<value>misc array 1 - 2</value>
<type>String</type>
</element>
</misc-array1>
</misc-array1>
<misc-array2>
<type>Array</type>
<misc-array2>
<element>
<value>misc array 2 - 1</value>
<type>String</type>
</element>
<element>
<value>misc array 2 - 2</value>
<type>String</type>
</element>
</misc-array2>
</misc-array2>
<requested-units>
<value>requested units</value>
<type>String</type>
</requested-units>
<estimate-price>
<value>estimate price</value>
<type>String</type>
</estimate-price>
<actual-units>
<value>actual units</value>
<type>String</type>
</actual-units>
<actual-cost>
<value>actual cost</value>
<type>String</type>
</actual-cost>
<actual-price>
<value>actual price</value>
<type>String</type>
</actual-price>
<SLABreached>
<value>true</value>
<type>Boolean</type>
</SLABreached>
<CIDown>
<value>true</value>
<type>Boolean</type>
</CIDown>
<s-l-a-breached>
<value>true</value>
<type>Boolean</type>
</s-l-a-breached>
<c-i-down>
<value>true</value>
<type>Boolean</type>
</c-i-down>
<asset>
<type>Array</type>
<asset>
<element>
<value>Norton Anti-Virus</value>
<type>String</type>
</element>
</asset>
</asset>
</middle>
<close>
<type>Structure</type>
<completion-code>
<value>1</value>
<type>Decimal</type>
</completion-code>
<closing-comments>
<type>Array</type>
<closing-comments>
<element>
<value>closing comment line 1</value>
<type>String</type>
</element>
<element>
<value>closing comment line 2</value>
<type>String</type>
</element>
</closing-comments>
</closing-comments>
</close>
<initial-assessment>
<value>4</value>
<type>String</type>
</initial-assessment>
<urgency>
<value>4</value>
<type>String</type>
</urgency>
<actual-start-date>
<value>2010.01.15 12:30:00</value>
<type>DateTime</type>
</actual-start-date>
<actual-end-date>
<value>2010.01.16 12:30:00</value>
<type>DateTime</type>
</actual-end-date>
</instance>
</model>
</move-to-next-phase-change-task-request>
</parameters>
</request>
</hp-service-manager-request>
The following figure displays an adapter response for the Move Task To Next Phase operation.
Sample adapter response for the Move Task To Next Phase 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>
<task-number>
<value>T69</value>
<type>String</type>
</task-number>
</keys>
<instance>
<header>
<type>Structure</type>
<task-number>
<value>T69</value>
<type>String</type>
</task-number>
<category>
<value>Hardware</value>
<type>String</type>
</category>
<status>
<value>initial</value>
<type>String</type>
</status>
<approval-status>
<value>pending</value>
<type>String</type>
</approval-status>
<assigned-to>
<value>assigned to</value>
<type>String</type>
</assigned-to>
<assignee-dept>
<value>Hardware</value>
<type>String</type>
</assignee-dept>
<coordinator>
<value>coordinator</value>
<type>String</type>
</coordinator>
<coordinator-phone>
<value>coordinator phone</value>
<type>String</type>
</coordinator-phone>
<planned-start-date>
<value>2008.11.01 08:00:00</value>
<type>DateTime</type>
</planned-start-date>
<planned-end-date>
<value>2009.11.01 08:00:00</value>
<type>DateTime</type>
</planned-end-date>
<reason>
<value>reason</value>
<type>String</type>
</reason>
<phase>
<value>HW deploy</value>
<type>String</type>
</phase>
<date-entered>
<value>2010.01.20 15:03:14</value>
<type>DateTime</type>
</date-entered>
<open>
<value>true</value>
<type>Boolean</type>
</open>
<originator>
<value>falcon j</value>
<type>String</type>
</originator>
<parent-change>
<value>C10177</value>
<type>String</type>
</parent-change>
<company>
<value>company</value>
<type>String</type>
</company>
<SLAAgreement-i-d>
<value>155</value>
<type>Int</type>
</SLAAgreement-i-d>
<s-l-a-agreement-i-d>
<value>155</value>
<type>Int</type>
</s-l-a-agreement-i-d>
</header>
<description-structure>
<type>Structure</type>
<description>
<type>Array</type>
<description>
<element>
<value>description line 1</value>
<type>String</type>
</element>
<element>
<value>description line 2</value>
<type>String</type>
</element>
</description>
</description>
</description-structure>
<middle>
<type>Structure</type>
<product-number>
<value>product number</value>
<type>String</type>
</product-number>
<configuration-item>
<value>Norton Anti-Virus</value>
<type>String</type>
</configuration-item>
<location>
<value>location</value>
<type>String</type>
</location>
<misc1>
<value>misc1</value>
<type>String</type>
</misc1>
...
<misc10>
<value>misc10</value>
<type>String</type>
</misc10>
<brief-description>
<value>brief description</value>
<type>String</type>
</brief-description>
<downtime-start>
<value>2008.11.01 08:00:00</value>
<type>DateTime</type>
</downtime-start>
<downtime-end>
<value>2009.11.01 08:00:00</value>
<type>DateTime</type>
</downtime-end>
<installation-date>
<value>2008.11.01 08:00:00</value>
<type>DateTime</type>
</installation-date>
<asset>
<type>Array</type>
<asset>
<element>
<value>Norton Anti-Virus</value>
<type>String</type>
</element>
</asset>
</asset>
<misc-array1>
<type>Array</type>
<misc-array1>
<element>
<value>misc array 1 - 1</value>
<type>String</type>
</element>
<element>
<value>misc array 1 - 2</value>
<type>String</type>
</element>
</misc-array1>
</misc-array1>
<misc-array2>
<type>Array</type>
<misc-array2>
<element>
<value>misc array 2 - 1</value>
<type>String</type>
</element>
<element>
<value>misc array 2 - 2</value>
<type>String</type>
</element>
</misc-array2>
</misc-array2>
<requested-units>
<value>requested units</value>
<type>String</type>
</requested-units>
<estimate-price>
<value>estimate price</value>
<type>String</type>
</estimate-price>
<actual-units>
<value>actual units</value>
<type>String</type>
</actual-units>
<actual-cost>
<value>actual cost</value>
<type>String</type>
</actual-cost>
<actual-price>
<value>actual price</value>
<type>String</type>
</actual-price>
<SLABreached>
<value>true</value>
<type>Boolean</type>
</SLABreached>
<CIDown>
<value>true</value>
<type>Boolean</type>
</CIDown>
<s-l-a-breached>
<value>true</value>
<type>Boolean</type>
</s-l-a-breached>
<c-i-down>
<value>true</value>
<type>Boolean</type>
</c-i-down>
</middle>
<close>
<type>Structure</type>
<completion-code>
<value>1</value>
<type>Decimal</type>
</completion-code>
</close>
<initial-assessment>
<value>4</value>
<type>String</type>
</initial-assessment>
<urgency>
<value>4</value>
<type>String</type>
</urgency>
<actual-end-date>
<value>2010.01.16 12:30:00</value>
<type>DateTime</type>
</actual-end-date>
<actual-start-date>
<value>2010.01.15 12:30:00</value>
<type>DateTime</type>
</actual-start-date>
<uniquequery>header,number="T69"</uniquequery>
<recordid>T69 - Hardware - pending - brief description</recordid>
</instance>
</model>
<messages>
<element>
<value>Data from Change C10177 has been copied to the Task per Link definition cm3t.task.request.</value>
</element>
<element>
<value>Task T69 Phase HW deploy Opened by falcon j</value>
</element>
</messages>
<status>SUCCESS</status>
<message>Success</message>
<schema-revision-date>2010.01.20 00:00:00</schema-revision-date>
<schema-revision-level>0</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*