---
title: "GET /executions/{executionId}/tasks/{id}"
method: GET
path: "/executions/{executionId}/tasks/{id}"
tags: ["executions"]
---

# GET /executions/{executionId}/tasks/{id}

`GET /executions/{executionId}/tasks/{id}`

**Required scope:** automation:workflows:read

## Path parameters

- `executionId` string, uuid, required
- `id` string, required

## Query parameters

- `adminAccess` boolean

## Response `200`

- TaskExecution
  - `id` string, required
  - `execution` string, uuid, nullable — Parent execution
  - `name` string, required
  - `state` 'DEACTIVATED' | 'WAITING' | 'IDLE' | 'RUNNING' | 'PAUSED' | 'SUCCESS' | 'ERROR' | 'CANCELLED' | 'SKIPPED' — * `DEACTIVATED` - DEACTIVATED * `WAITING` - WAITING * `IDLE` - IDLE * `RUNNING` - RUNNING * `PAUSED` - PAUSED * `SUCCESS` - SUCCESS * `ERROR` - ERROR * `CANCELLED` - CANCELLED * `SKIPPED` - SKIPPED
  - `stateInfo` string, nullable
  - `input` object
  - `startedAt` string, date-time, required
  - `endedAt` string, date-time, required
  - `runtime` integer, required — Calculate the runtime of an exection in seconds. If the Execution is not ended, runtime is calculated until now.
  - `triggeredBy` object
  - `position` object, required
    - `x` integer, required
    - `y` integer, required
  - `conditions` object, required
  - `predecessors` string[], required
  - `active` boolean, required — Whether task is active
  - `result` object, required
  - `published` object
  - `isErrorTask` boolean
  - `conditionResults` object

## Other responses

- `4XX`

---

[API](https://skmtc.net/dynatrace/apis/automation.md) · [All operations](https://skmtc.net/dynatrace/apis/automation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dynatrace/automation/versions/0fe23f9b256b/schema)
