Questions tagged [asana-api]

The Asana API is a RESTful interface, providing programmatic access to much of the data in the system

The Asana Api is a RESTful interface, providing programmatic access to much of the data in the system. It provides predictable URLs for accessing resources, and uses built-in HTTP features to receive commands and return responses. This makes it easy to communicate with from a wide variety of environments, from command-line utilities to gadgets to the browser URL bar itself.

The API accepts JSON or form-encoded content in requests and returns JSON content in all of its responses, including errors. Only the UTF-8 character encoding is supported for both requests and responses.

189 questions
1
vote
1 answer

Efficiently getting all completed tasks

For an application I need all the user's recently completed tasks (recent meaning the last 7 days in this case). I've got it working now, but it's extremely inefficient and in the API reference I can't see a better way to do it. What I currently…
Bas
  • 1,946
  • 21
  • 38
1
vote
1 answer

Asana: 401: Not authorized on put requests but not on get requests

I'm developing a UWP app for a quick overview and some time management for my tasks on asana. However, I cannot update any task while getting everything works fine. The setup is the following: I obtain an oauth token via a WebView-Element (hosted…
Frosty
  • 46
  • 4
1
vote
1 answer

bizarre 500 errors from asana create task api

I'm trying to create a new task using the node.js asana library and I'm getting weird 500 errors: 500 error { message:"Server Error" phrase: "29 bizarre cobras wait hourly" } create code var task = { name: card.name, notes: card.desc, …
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
1
vote
1 answer

How to get a user's oldest task from the Asana API?

So I have a little bit of a dilemma in trying to obtain the oldest task of a user. I’m able to get the oldest task of each user in my team's workspace, but takes 1 hour and 30 minutes to run. Here's the current workflow that I have currently: 1) Get…
irmiller22
  • 172
  • 6
1
vote
1 answer

How to fetch asana tasks with certain tag?

I've created a little web application with some custom features and integrated into our backend. Now, I would like to be able to filter all tasks by tag. I have the following function: public function getTasksByFilter($filter = array('assignee' =>…
Peter
  • 8,776
  • 6
  • 62
  • 95
1
vote
2 answers

Creating Asana tasks from Google Apps Script

I am trying to create tasks in Asana using google apps scripts. I do manage to read (GET method) any kind of information from asana, but when I try to do a POST like creating a new task in a specific workspace and project, it creates the task but…
jairmz
  • 13
  • 1
  • 3
1
vote
1 answer

Get all task from project using Asana API in php

I have to fetch task using Asana API under project, I tried so far but gives error $tasksall = $asana->getProjectTasks($projectId); $tasksJson = json_decode($tasksall); print_r($taskJson); Call a function public function…
Chiku
  • 107
  • 11
1
vote
0 answers

How to get incomplete task using asana API in PHP

I have to fetch only incomplete task using Asana API $projectId = 'XXXXXXXXXXX'; $args = array('completed_since' => now); $tasks = $asana->getProjectTasks($projectId, $args); $tasksJson = json_decode($tasks); echo "
";…
Chiku
  • 107
  • 11
1
vote
1 answer

Asana REST API - Attach file to task

I'm trying to attach a file to a task in Asana through the REST API and I'm getting a timeout error. I believe that the error comes from Asana side, so I'm kind of stuck... The request I'm making has the following format POST…
Pedro Cardoso
  • 373
  • 3
  • 7
1
vote
1 answer

Asana Task API Stories only provide hyperlink to Asana User's tasks page instead of Username

Whan an Asana user refers to another Asana user with '@' reference + user name in a comment under a task, Asana replaces it with user name as hyperlink referring to the user's tasks page in Asana. This is fine as long as it is viewed from within…
Sathish
  • 13
  • 3
1
vote
1 answer

Can I change the ownership of an Asana API app?

I inadvertently created an app using an old Asana account that I'd now like to deactivate. I'd like to transfer ownership of the app (keeping the same client ID) to my actual active account. Is there a way to do this? I could create a new app (with…
0
votes
0 answers

Unable to migrate a Asana project using Ditto

I've tried several times but I just couldn't migrate the project from one workspace to another. I always encounter an error and there seems to be a dead end on my migration path. Can you please help me with getting this sorted as I really need to…
CA-AC
  • 1
0
votes
0 answers

Asana API in python

Im doing an API, and I can bring all the projects, task and subtask from my workspace. But i can't bring the Assignee and anothers importants fields. I want to do a table with all the asana data from all my task. If someone can help me. Thanks.
0
votes
0 answers

download an excel in asana in python

import asana import json from six import print_ client = asana.Client.basic_auth('personal token') me = client.users.me() print_("me=" + json.dumps(me, indent=2)) personal_projects = next(workspace for workspace in me['workspaces'] if…
0
votes
1 answer

Asana: Can I add API call on Asana Workflow Action?

Currently, it seems that Asana Workflow Action does not support skipping weekends in due date calculation, which is achievable in NodeJS. I am thinking if we can let it make an API call whenever a task has been moved into a certain section so that…
Terry Windwalker
  • 1,343
  • 2
  • 16
  • 36