arazzo: 1.0.1
info:
title: Asana Provision a Workspace Project With a First Task
summary: Create a project directly in a workspace and seed it with a first task.
description: >-
A lightweight project setup flow for organizations that file projects at the
workspace level. The workflow creates a project in a workspace and then
creates a first task inside it. Each request is written inline so the setup
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: projectsApi
url: ../openapi/asana-projects-api-openapi.yml
type: openapi
- name: tasksApi
url: ../openapi/asana-tasks-api-openapi.yml
type: openapi
workflows:
- workflowId: provision-workspace-project
summary: Create a workspace project and seed it with a first task.
description: >-
Creates a project in a workspace, then creates a first task in it.
inputs:
type: object
required:
- workspaceGid
- projectName
- taskName
properties:
workspaceGid:
type: string
description: Workspace gid the project and task belong to.
projectName:
type: string
description: Name of the project to create.
taskName:
type: string
description: Name of the first task to create in the project.
steps:
- stepId: createProject
description: Create a project directly in the workspace.
operationId: $sourceDescriptions.projectsApi.createProjectForWorkspace
parameters:
- name: workspace_gid
in: path
value: $inputs.workspaceGid
requestBody:
contentType: application/json
payload:
data:
name: $inputs.projectName
workspace: $inputs.workspaceGid
successCriteria:
- condition: $statusCode == 201
outputs:
projectGid: $response.body#/data/gid
- stepId: createFirstTask
description: Create the first task inside the new project.
operationId: $sourceDescriptions.tasksApi.createTask
requestBody:
contentType: application/json
payload:
data:
name: $inputs.taskName
workspace: $inputs.workspaceGid
projects:
- $steps.createProject.outputs.projectGid
successCriteria:
- condition: $statusCode == 201
outputs:
taskGid: $response.body#/data/gid
outputs:
projectGid: $steps.createProject.outputs.projectGid
taskGid: $steps.createFirstTask.outputs.taskGid
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.