arazzo: 1.0.1
info:
title: Asana Assign and Add Followers to a Task
summary: Create a task, assign it to an owner, and add followers who should be notified.
description: >-
A handoff flow. The workflow creates a task in a workspace, assigns it to an
owner, and then adds a set of followers who should receive notifications on
the task. Each request is written inline so the handoff can be read and
executed without opening the underlying OpenAPI description. The add-followers
endpoint lives only in the full Asana description, so every step is addressed
through that single source.
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: assign-and-follow-task
summary: Create an assigned task and add followers to it.
description: >-
Creates a task assigned to an owner, then adds followers to it.
inputs:
type: object
required:
- workspaceGid
- taskName
- assigneeGid
- followerGids
properties:
workspaceGid:
type: string
description: Workspace gid the task belongs to.
taskName:
type: string
description: Name of the task to create.
assigneeGid:
type: string
description: User gid to assign the task to.
followerGids:
type: array
description: User gids to add as followers of the task.
items:
type: string
steps:
- stepId: createAssignedTask
description: Create the task and assign it to the owner.
operationId: $sourceDescriptions.tasksApi.createTask
requestBody:
contentType: application/json
payload:
data:
name: $inputs.taskName
workspace: $inputs.workspaceGid
assignee: $inputs.assigneeGid
successCriteria:
- condition: $statusCode == 201
outputs:
taskGid: $response.body#/data/gid
- stepId: addFollowers
description: Add followers who should be notified on the task.
operationId: $sourceDescriptions.tasksApi.addFollowersForTask
parameters:
- name: task_gid
in: path
value: $steps.createAssignedTask.outputs.taskGid
requestBody:
contentType: application/json
payload:
data:
followers: $inputs.followerGids
successCriteria:
- condition: $statusCode == 200
outputs:
followerResult: $response.body#/data/followers
outputs:
taskGid: $steps.createAssignedTask.outputs.taskGid
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.