# Get Orchestration Execution Tasks by Activity

Retrieve all orchestration execution tasks for a specific activity in a release phase

Endpoint: GET /rmg/api/orchestration/execution/{releaseId}/phase/{phaseIdentifier}/activity/{activityIdentifier}/tasks
Version: 1.0
Security: x-api-key

## Path parameters:

  - `releaseId` (string, required)
    The ID of the release

  - `phaseIdentifier` (string, required)
    The identifier of the phase

  - `activityIdentifier` (string, required)
    The identifier of the activity

## Query parameters:

  - `activityExecutionId` (string)
    The ID of the activity execution

  - `orgIdentifier` (string)
    Organisation Identifier

  - `projectIdentifier` (string)
    Project Identifier

## Header parameters:

  - `Harness-Account` (string, required)
    Account Identifier

## Response 200 fields (application/json):

  - `tasks` (array, required)
    List of execution tasks

  - `tasks.identifier` (string, required)
    Unique identifier of the task

  - `tasks.name` (string, required)
    Name of the task

  - `tasks.description` (string)
    Description of the task

  - `tasks.status` (string, required)
    Current status of the execution task
    Enum: "TODO", "IN_PROGRESS", "SUCCEEDED", "FAILED", "BLOCKED"

  - `tasks.required` (any, required)
    Flexible type that accepts either a boolean or a string

  - `tasks.userGroups` (any, required)
    Flexible type that accepts either a single string or an array of strings for user references

  - `tasks.expectedDuration` (string, required)
    Expected duration for the task (e.g., "1d 12h")

  - `tasks.actualDuration` (string)
    Actual duration taken for the task (e.g., "7h")

  - `tasks.createdAt` (integer)
    Unix timestamp when the task was created

  - `tasks.lastUpdatedAt` (integer)
    Unix timestamp when the task was last updated

  - `tasks.taskExecutionId` (string)
    ID of the task execution

  - `tasks.failureInfo` (object)
    Information about a failure that occurred

  - `tasks.failureInfo.msg` (string, required)
    The failure message describing what went wrong

  - `tasks.failureInfo.code` (string)
    The failure code indicating the type of failure

## Response 400 fields (application/json):

  - `message` (string, required)
    error message detail

  - `code` (string)
    canonical error code name
    Enum: "BAD_REQUEST", "UNAUTHORIZED", "FORBIDDEN", "NOT_FOUND", "INTERNAL_SERVER_ERROR"


