Asana · Arazzo Workflow

Asana Create a Task With Subtasks

Version 1.0.0

Create a parent task, then add two subtasks under it to break the work down.

1 workflow 1 source API 1 provider
View Spec View on GitHub CollaborationProductivityProject ManagementProjectTask ManagementTaskWorkflowsArazzoWorkflows

Provider

asana

Workflows

create-task-with-subtasks
Create a parent task and two subtasks beneath it.
Creates a parent task and adds two subtasks to it.
3 steps inputs: parentName, subtaskOneName, subtaskTwoName, workspaceGid outputs: parentGid, subtaskOneGid, subtaskTwoGid
1
createParent
Create the parent task in the workspace.
2
createSubtaskOne
Create the first subtask under the parent.
3
createSubtaskTwo
Create the second subtask under the parent.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Asana Create a Task With Subtasks
  summary: Create a parent task, then add two subtasks under it to break the work down.
  description: >-
    A work-breakdown flow. The workflow creates a parent task in a workspace and
    then creates two subtasks under it, returning the parent and both subtask
    gids. Each request is written inline so the breakdown can be read and
    executed without opening the underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-900.30
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-900.30
      capability_name: Project Management
      spec: asana-tasks-api-openapi.yml
      confidence: 0.85
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: tasksApi
  url: ../openapi/asana-tasks-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-task-with-subtasks
  summary: Create a parent task and two subtasks beneath it.
  description: >-
    Creates a parent task and adds two subtasks to it.
  inputs:
    type: object
    required:
    - workspaceGid
    - parentName
    - subtaskOneName
    - subtaskTwoName
    properties:
      workspaceGid:
        type: string
        description: Workspace gid the tasks belong to.
      parentName:
        type: string
        description: Name of the parent task.
      subtaskOneName:
        type: string
        description: Name of the first subtask.
      subtaskTwoName:
        type: string
        description: Name of the second subtask.
  steps:
  - stepId: createParent
    description: Create the parent task in the workspace.
    operationId: createTask
    requestBody:
      contentType: application/json
      payload:
        data:
          name: $inputs.parentName
          workspace: $inputs.workspaceGid
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      parentGid: $response.body#/data/gid
  - stepId: createSubtaskOne
    description: Create the first subtask under the parent.
    operationId: createSubtaskForTask
    parameters:
    - name: task_gid
      in: path
      value: $steps.createParent.outputs.parentGid
    requestBody:
      contentType: application/json
      payload:
        data:
          name: $inputs.subtaskOneName
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      subtaskOneGid: $response.body#/data/gid
  - stepId: createSubtaskTwo
    description: Create the second subtask under the parent.
    operationId: createSubtaskForTask
    parameters:
    - name: task_gid
      in: path
      value: $steps.createParent.outputs.parentGid
    requestBody:
      contentType: application/json
      payload:
        data:
          name: $inputs.subtaskTwoName
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      subtaskTwoGid: $response.body#/data/gid
  outputs:
    parentGid: $steps.createParent.outputs.parentGid
    subtaskOneGid: $steps.createSubtaskOne.outputs.subtaskOneGid
    subtaskTwoGid: $steps.createSubtaskTwo.outputs.subtaskTwoGid

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/asana-create-task-with-subtasks-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.