---
title: "List of sub tasks for a task"
method: GET
path: "/cmmn-runtime/tasks/{taskId}/subtasks"
tags: ["Tasks"]
---

# List of sub tasks for a task

`GET /cmmn-runtime/tasks/{taskId}/subtasks`

## Request

- Base URL: `https://developer-docs.flowable.com/cmmn-api`
- URL: `https://developer-docs.flowable.com/cmmn-api/cmmn-runtime/tasks/{taskId}/subtasks`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/docs/cmmn-runtime/tasks/:taskId/subtasks/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `taskId` string, required

## Response `200`

Indicates request was successful and the  sub tasks are returned

- TaskResponse[]
  - `id` string
  - `url` string
  - `owner` string
  - `assignee` string
  - `delegationState` string: Delegation-state of the task, can be null, "pending" or "resolved".
  - `name` string
  - `description` string
  - `createTime` string, date-time
  - `dueDate` string, date-time
  - `priority` integer
  - `suspended` boolean
  - `claimTime` string
  - `taskDefinitionKey` string
  - `scopeDefinitionId` string
  - `scopeId` string
  - `subScopeId` string
  - `scopeType` string
  - `propagatedStageInstanceId` string
  - `tenantId` string
  - `category` string
  - `formKey` string
  - `caseInstanceId` string
  - `caseInstanceUrl` string
  - `caseDefinitionId` string
  - `caseDefinitionUrl` string
  - `parentTaskId` string
  - `parentTaskUrl` string
  - `executionId` string
  - `processInstanceId` string
  - `processDefinitionId` string
  - `variables` RestVariable[]
    - `name` string: Name of the variable
    - `type` string: Type of the variable.
    - `value` object: Value of the variable.
    - `valueUrl` string
    - `scope` string

## Other responses

- `404`: Indicates the requested task was not found.

---

[API](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api.md) - [All operations](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowable/apis/flowable-cmmn-rest-api/revisions/afdfa1fcacd0?raw)
