> For the complete documentation index, see [llms.txt](https://docs.getmesa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getmesa.com/connect/asana.md).

# Asana

### Connection <a href="#connect" id="connect"></a>

When you're setting up your first workflow with Asana, you'll need to create a connection through MESA's Asana app or use your own custom Asana app. Click on the **Connect with Asana** button.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FHA4GZuxZxRvlIa0K3BSr%2Fasana-task-added-credential.png?alt=media&amp;token=e4b6d984-2ed3-4571-b737-63b9f4f4c71d" alt="Screenshot of the MESA Asana connection setup for your first Asana workflow. Spotlight the Connect with Asana button."><figcaption></figcaption></figure>

You will see a screen asking you to grant MESA permission to connect with your Asana account. Once you have reviewed the permissions, click on **Allow**.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2F7RUPeWnSNx3ruzwPZ9Zx%2FDW-asana-grant-permission.png?alt=media&amp;token=4c2d5b77-58c5-4ecf-b8a9-78dc282bce98" alt="Screenshot of the Asana permission screen asking you to grant MESA permission to connect with your Asana account. Spotlight the Allow button."><figcaption></figcaption></figure>

Afterwards, you will be brought back to your current workflow and you are all set! MESA is now connected with your Asana account.

***

### Configuration <a href="#configuring" id="configuring"></a>

#### Select your Workplace, Project, or Task <a href="#select" id="select"></a>

All Asana [triggers](/workflow-builder/triggers.md) require you to select a workspace that MESA should work with. If your Asana [trigger or action](/workflow-builder/triggers.md) contains multiple fields to select, you must click on the **Workplace** drop-down menu first.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FJelhpCFaD21Ycn4rXugL%2FDW-asana-task-added-workspace.png?alt=media&amp;token=bc8bfb36-4c8c-48aa-bc3f-4b3013aca5f7" alt="Screenshot of an Asana trigger configuration in MESA where you select the workspace MESA should work with. Spotlight the Workplace drop-down menu."><figcaption></figcaption></figure>

You can also specify the **Project Gid** below the Workplace drop-down menu. Clicking on Project Gid first without selecting a workplace will display an error.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2Fz6wDrMmhXsdynhNcFNiM%2FDW-asana-task-added-project-gid.png?alt=media&amp;token=6ccb3c42-e25c-489a-bacc-489447f49575" alt="Screenshot of an Asana trigger configuration in MESA showing the Project Gid field below the Workplace drop-down menu. Spotlight the Project Gid field."><figcaption></figcaption></figure>

#### Start off with an Asana Task Added trigger in your MESA workflow <a href="#triggers" id="triggers"></a>

{% hint style="info" %}
When your enabled workflow starts with an Asana Task Added trigger, you will see many Skipped tasks in the workflow's Activity tab. Don't be scared! That is to be expected. 😊
{% endhint %}

You will see many **Skipped** tasks since Asana sends MESA any update that occurs in any of your Asana tasks.

To prevent multiple MESA tasks associated to the same update from triggering the workflow, MESA will automatically mark duplicated MESA tasks as **Skipped**. Please note that **Skipped** tasks will not impact your billing.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2Fhhndg574VAc8pbN7978S%2FDW-asana-activity.png?alt=media&amp;token=cab27723-3898-498f-a834-614d7bbf261e" alt="Screenshot of a MESA workflow Activity tab showing many Skipped tasks from an Asana Task Added trigger. Spotlight the Skipped task statuses."><figcaption></figcaption></figure>

When viewing the workflow's [Activity tab](/workflow-activity.md), we recommend sorting your MESA tasks by clicking on the **Status** drop-down menu to view your tasks' statuses more efficiently.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FoiQhT75Ks5GM6fsFqKE3%2FDW-asana-filter-status.png?alt=media&amp;token=75286957-3f05-4be5-a061-f6469700293b" alt="Screenshot of a MESA workflow Activity tab, sort your tasks by status. Spotlight the Status drop-down menu."><figcaption></figcaption></figure>

#### Update an Asana task after your workflow starts off with an Asana Task Added trigger <a href="#infinite" id="infinite"></a>

{% hint style="danger" %}
Please read the following if your workflow looks like the below screenshot. The below screenshot will cause unintended problems.
{% endhint %}

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FRRsEgowgdf092fRCSnYV%2FDW-asana-workflow-steps1.png?alt=media&amp;token=0a003d9d-0c2d-4466-b97c-7c2891eec928" alt="Screenshot of a problematic MESA workflow that starts with an Asana Task Added trigger and updates the Asana task with no other steps, causing an infinite loop. Spotlight the workflow steps."><figcaption></figcaption></figure>

The **Asana Task Added** trigger not only activates when any Asana task is added but also when an Asana task is updated. Therefore, updating the Asana Task without any other steps in the workflow will cause an infinite loop between these two steps. An infinite loop will cause your workflow to run in a circle and create many MESA tasks.

To prevent this, we recommend adding a [Filter](/tools/filter.md) step below your workflow's trigger. The Filter should check for whatever you plan to update the task with. If the Filter step locates the item that is used to update the task, then the Filter step will stop the automation.

Your workflow should look like this now:

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FtzcE8E9DQ8KCx2JOtwGo%2FDW-asana-workflow-steps-2.png?alt=media&amp;token=94f0da02-f863-4355-8d55-7fbf9a4936b4" alt="Screenshot of the corrected MESA workflow with a Filter step added below the Asana Task Added trigger to prevent an infinite loop. Spotlight the Filter step."><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.getmesa.com/connect/asana.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
