Asana is a “work management” platform that helps users or teams to collaborate and manage work together. The Studio has Asana Connector to make users experience the features of Asana and implement them in their DronaHQ micro apps. You can perform various tasks in your Asana connector with the available subcategory global APIs, such as adding tasks, viewings tasks, viewing status, and more.
Configuring Asana Connector
To add Asana connector in your account you simply have to find Asana under Studio > Connectors, click (+) Connector.
Select it and click on Connect Asana. A pop-up will display asking you to connect to your Asana account. Authorize it and your Asana connector is ready.
Using Asana connector
Now that we have configured the Asana connector, you will see that various endpoints are available with the connector.
These endpoints will be useful to work with the data to fetch from and feed data to the Asana workspace database.
Get details of your Workspace
For instance, if we want to get the details of a workspace in Asana, we have to go to the data-bind section of our control and select the Asana connector, select GetWorkspaceDetails endpoint, and finally select our configured account.
Provide/select the name of the workspace configured with your registered email ID, then bind the keys as columns for the control and click Test & Finish.
Adding the task to a section
Now if you want to change the section of a task or add an existing task to a section of your project in a workspace you can do it by selecting the AddTaskToSection endpoint. This will add a task the specified section provided by the user.
You can trigger it through actions and data bind section of several controls.
Let’s try this out using the button control. In the events section of the button control, we will add the server-side action of the Asana connector. Select the AddTaskToSection endpoint then select the configured account.
Next, it will ask you to choose the project from your account, to where you want to add the task to a section. Select the section as well as the task you want to assign. Do Continue and then Finish.
You can add a toast action to verify the updates or can cross-check by fetching the data.