Find Task operation
The Find Task operation retrieves a task record.
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 Find Task operation
Element |
Definition |
Required |
---|---|---|
|
Specifies the name of the operation: |
Yes |
|
Contains the other elements in the request |
Yes |
|
Contains elements that uniquely identify a record |
Yes |
|
Specifies a unique record |
Yes |
|
Specifies the header information of the change record; is a structure-type element |
Yes |
|
Specifies the number associated with a task |
No |
|
Specifies the category of the change record
|
No |
|
Specifies the status of a task
|
No |
|
Specifies the name of the person to whom the task is assigned |
No |
|
Specifies the department of the assignee. |
No |
|
Specifies the name of the person coordinating the task |
No |
|
Specifies the phone number of the coordinator for the change |
No |
|
Specifies the planned start date for the task |
No |
|
Specifies the planned end date for the task |
No |
|
Specifies the reason for the task |
No |
|
Specifies the phase of a task |
No |
|
Specifies the date when the task was created |
No |
|
Specifies whether the change record is in an open state
|
No |
|
Specifies the originator of the task |
No |
|
Specifies the change number of the parent change related to the task |
No |
|
Specifies the date on which the task was closed |
No |
|
Specifies the name of the company |
No |
|
Specifies the Service Level Agreement (SLA) ID of the task |
No |
|
Specifies an array of descriptions for the change; is a structure type element |
Yes |
|
Specifies a description of the task; is an array-type element |
No |
|
Specifies an array of descriptions for the change; is a structure-type element |
Yes |
|
Specifies the product number of the task |
No |
|
Specifies the configuration item associated with the task |
No |
|
Specifies the location associated with the change task |
No |
|
Specifies miscellaneous information about the task |
No |
|
Specifies miscellaneous information about the task |
No |
|
Specifies miscellaneous information about the task |
No |
|
Specifies miscellaneous information about the task |
No |
|
Specifies miscellaneous information about the task |
No |
|
Specifies miscellaneous information about the task |
No |
|
Specifies miscellaneous information about the task |
No |
|
Specifies miscellaneous information about the task |
No |
|
Specifies miscellaneous information about the task |
No |
|
Specifies miscellaneous information about the task |
No |
|
Specifies the title or a brief description of the task |
No |
|
Specifies the date and time when the downtime related to the task started |
No |
|
Specifies the date and time when the downtime related to the task ended |
No |
|
Specifies the installation date for the task |
No |
|
Specifies a miscellaneous array element for the task |
No |
|
Specifies a miscellaneous array element for the task |
No |
|
Specifies the requested units for the task |
No |
|
Specifies the estimated price for implementing the change task |
No |
|
Specifies the actual units required for the task |
No |
|
Specifies the actual cost of implementing the change task |
No |
|
Specifies the actual price for implementing the task |
No |
|
Specifies whether the SLA related to the task was breached |
No |
|
Specifies the date when the SLA related to the task expires |
No |
|
Specifies whether the configuration item related to the task is down |
No |
|
Specifies whether the SLA was breached |
No |
|
Specifies whether the configuration item is down |
No |
|
Specifies the associated configuration item with the change record; is an array-type element |
No |
|
Specifies the closure information and comments for the task; is a structure-type element |
Yes |
|
Specifies the completion code for the task |
No |
|
Specifies the closure comments for the task; is an array-type element |
No |
|
Specifies the initial assessment of the change task
|
No |
|
Specifies the level of urgency for the change
|
No |
|
Specifies the date when the task was started |
No |
|
Specifies the date when the task ended |
No |
The following figure displays the sample adapter request for the Find Task operation.
Sample adapter request for the Find Task operation
<hp-service-manager-request>
<entity>change</entity>
<entity-type>task</entity-type>
<request>
<operation-name>retrieve-change-task</operation-name>
<parameters>
<retrieve-change-task-request>
<model>
<keys>
</keys>
<instance>
<header>
<type>Structure</type>
</header>
<description-structure>
<type>Structure</type>
</description-structure>
<middle>
<type>Structure</type>
</middle>
<close>
<type>Structure</type>
</close>
</instance>
</model>
</retrieve-change-task-request>
</parameters>
</request>
</hp-service-manager-request>
The following figure displays an adapter response for the Find Task operation.
Sample adapter response for the Find Task operation
<hp-service-manager-response>
<metadata>
<count>14</count>
</metadata>
<responses>
<response>
<metadata>
<count>14</count>
</metadata>
<item>
<metadata>
<status>success</status>
</metadata>
<parameters>
<model>
<keys>
<task-number>
<value>MyTask0051</value>
<type>String</type>
</task-number>
</keys>
<instance>
<header>
<type>Structure</type>
<task-number>
<value>MyTask0051</value>
<type>String</type>
</task-number>
<category>
<value>Network</value>
<type>String</type>
</category>
<assignee-dept>
<value>Application</value>
<type>String</type>
</assignee-dept>
<phase>
<value>Network</value>
<type>String</type>
</phase>
<date-entered>
<value>2010.01.08 11:40:21</value>
<type>DateTime</type>
</date-entered>
<open>
<value>true</value>
<type>Boolean</type>
</open>
<parent-change>
<value>C10021</value>
<type>String</type>
</parent-change>
</header>
<description-structure>
<type>Structure</type>
<description>
<type>Array</type>
<description>
<element>
<value>First line of change desc</value>
<type>String</type>
</element>
</description>
</description>
</description-structure>
<middle>
<type>Structure</type>
<brief-description>
<value>tttttt</value>
<type>String</type>
</brief-description>
<asset>
<type>Array</type>
<asset>
<element>
<value>SAP</value>
<type>String</type>
</element>
</asset>
</asset>
<SLABreached>
<value>false</value>
<type>Boolean</type>
</SLABreached>
<s-l-a-breached>
<value>false</value>
<type>Boolean</type>
</s-l-a-breached>
</middle>
<close>
<type>Structure</type>
</close>
<initial-assessment>
<value>1</value>
<type>String</type>
</initial-assessment>
<urgency>
<value>2</value>
<type>String</type>
</urgency>
<uniquequery>header,number="MyTask0051"</uniquequery>
<recordid>MyTask0051 - Network - approved - tttttt</recordid>
</instance>
</model>
<status>SUCCESS</status>
<message>Success</message>
<schema-revision-date>2005.03.15 00:00:00</schema-revision-date>
<schema-revision-level>0</schema-revision-level>
<return-code>0</return-code>
</parameters>
</item>
<item>...</item>
...
<item>...</item>
<item>...</item>
</response>
</responses>
</hp-service-manager-response>
Comments
Log in or register to comment.