arazzo: 1.0.1
info:
title: Asana Refresh a Project's Status Update
summary: Read the most recent status update on a project, then post a fresh one.
description: >-
A recurring-reporting flow. The workflow reads the existing status updates on
a project to capture the latest one for reference and then posts a fresh
status update. Each request is written inline so the refresh can be read and
executed without opening the underlying OpenAPI description.
version: 1.0.0
sourceDescriptions:
- name: statusUpdatesApi
url: ../openapi/asana-status-updates-api-openapi.yml
type: openapi
workflows:
- workflowId: refresh-project-status-update
summary: Read the latest project status update and post a new one.
description: >-
Reads the status updates on a project, then posts a fresh status update.
inputs:
type: object
required:
- projectGid
- statusType
- statusTitle
- statusText
properties:
projectGid:
type: string
description: Project gid to read and post status updates for.
statusType:
type: string
description: Status type, one of on_track, at_risk, off_track, on_hold, complete.
statusTitle:
type: string
description: Title of the new status update.
statusText:
type: string
description: Body text of the new status update.
steps:
- stepId: readLatestStatus
description: Read the existing status updates on the project.
operationId: getStatusesForObject
parameters:
- name: parent
in: query
value: $inputs.projectGid
- name: limit
in: query
value: 1
successCriteria:
- condition: $statusCode == 200
outputs:
latestStatusGid: $response.body#/data/0/gid
- stepId: postFreshStatus
description: Post a fresh status update on the project.
operationId: createStatusForObject
requestBody:
contentType: application/json
payload:
data:
parent: $inputs.projectGid
status_type: $inputs.statusType
title: $inputs.statusTitle
text: $inputs.statusText
successCriteria:
- condition: $statusCode == 201
outputs:
statusUpdateGid: $response.body#/data/gid
outputs:
projectGid: $inputs.projectGid
statusUpdateGid: $steps.postFreshStatus.outputs.statusUpdateGid
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.