Share this page

# 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();

https://admhelp.microfocus.com PPM 8942
Tips to improve your search results... OpenText™ Project and Portfolio Management Help Center PPM Help 26.2-26.3 All View Local Help Center View Online Help Center Version: