readTasks

Purpose

This operation reads a list of tasks information corresponding to the given task IDs.

Input

The input specifies a list of task IDs for which you want to collect task information. The specified tasks do not need to belong to the same project.

Return

TaskType

If the operation is successful, a list of tasks as defined in the TaskType is returned to the client.

Java Examples

See webservice_toolkit:

java\client\src\examples\pm\ProjectServiceClient.java

readTasks ()

long taskId = 30000;
ReadTasksDocument readTskDoc =
ReadTasksDocument.Factory.newInstance();
ReadTasks readTsks = readTskDoc.addNewReadTasks();
readTsks.addTaskId(taskId);
ReadTasksResponseDocument readTskresponseDoc =
stub.readTasks(readTskDoc);
TaskType[] tasks =
readTskresponseDoc.getReadTasksResponse().getReturnArray();