All Collections
Journeys
Asana integration in Journeys
Asana integration in Journeys
Kristín Helga Magnúsdóttir avatar
Written by Kristín Helga Magnúsdóttir
Updated over a week ago

You can set up an integration with Asana in the Integration Builder in Journeys.

The integration can for example create tasks in Asana - let's look at how to set that up.

Start with setting up a new integration, give it a name and logo:

Next, get your personal access token and workspace GID in Asana - here is a guide to how to get the access token and your GID: https://developers.asana.com/docs/quick-start

Now use your persona access token to authenticate in Journeys:

After that, you can add an endpoint. Let's start with creating a simple task:

JSON:

{

"data": {

"workspace": "YOUR WORKSPACE GID",

"name": "Sample task",

"assignee": "me"

}

}

Remember to replace the workspace with your workspace GID.


When you see this working, then you can also start adding some other variables to the task, for example due date, project etc. You can find available fields in the Asana API: https://developers.asana.com/reference/createtask

You also probably want to be able to choose from a list of assignees. Then you can set up a list of the potential assignees under lists:

You can find a persons Asana ID by opening them in Asana and in the URL you see their ID:

Note that this is just an example of how you can create a task - but you can probably do most things in Asana using Journeys, you're only limited to what Asana's API offers.

You can also for example create users, add them to proejcts, update tasks, etc.

Best of luck creating and maintaining your Asana integration! 🚀

Appendix - in case you want to do more in Asana

Move task to another section

Maybe you've created a task in your process, and after a form has been completed, you want to move the task to another stage, like this:

First, you need to find the IDs of the sections you have. You can do that in Journeys (or your preferred API client) like this:

Where {{your_project_id}} is the ID that you see in the URL when you are viewing your Asana board:

When you test it, you'll get a list of the "gid" for the sections in this project:

copy that, and now add the sections you want to use under a list:

Insert the "gid" as value.

Now we have the available sections - let's create the real action to move the task to a list:

Your post url will be:

https://app.asana.com/api/1.0/tasks/{{task_gid}}

Also make sure to have the method set as "PUT".

Your example request should be something like:

{
"data": {
"assignee_section": "1203873984567605"
}
}

But instead of having this "1203873984567605" - use one of your sections from the previous step.

To test the integration, you can find a task in your Asana project, click on it, and then you'll see the task_gid in the navigation bar, here:

Now insert that task_gid to the test request, and change the section type to your new "Asana sections" list, like this:

When you test it, you should get a Success response and this task should have moved to the desired section

Well done ! 👏


Here is an example use case:

Note, if you want to do other changes in a task, you can keep on using this put function - more information can be found here: https://developers.asana.com/reference/updatetask

Did this answer your question?