asana

How can I add guests or members to projects created through the Asana API?

这一生的挚爱 提交于 2019-12-12 05:58:36
问题 I currently have a script that takes a list of people and creates new Asana projects, one for each person. These people are not in our Asana organization and need to be invited as guests to their respective projects. If I try to include a followers or members property in my API request, I get denied, and the docs list those properties as read-only . I noticed this question from over a year and a half ago, where an Asana engineer said that it was on the API roadmap and that he hoped to publish

POST data to Asana API in C#

*爱你&永不变心* 提交于 2019-12-12 03:37:58
问题 I am trying to use the Asana API to update and add data to Asana. How do I do it in C#? I am getting data fine - sample code below: string apiKey = "xxxxxxxxx.xxxxxxxxxxxxxxxxxxxxxxxxx"; var req = WebRequest.Create("https://app.asana.com/api/1.0/workspaces/xxxxxxxxxxxxxxx/projects"); var authInfo = apiKey + ":"; var encodedAuthInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo)); req.Headers.Add("Authorization", "Basic " + encodedAuthInfo); var response = new StreamReader(req

Creating an Asana Task using a POST http request

烈酒焚心 提交于 2019-12-12 03:31:39
问题 I'm trying to use the asana-api to create a Task using a POST http request but I keep getting a 400 bad request as a response . I managed to get data from the Asana-api using ( a GET request ), but I'm having trouble sending data to Asana with ( a POST request ) I'm using the 'request' module to do the api call here's the error message : `{"errors":[{ "message":"Could not parse request data,invalid JSON", "help":"For more information on API status codes and how to handle them, read the docs

Is it possible to query or modify project membership/guests with the Asana API?

这一生的挚爱 提交于 2019-12-12 02:36:21
问题 I'd like to be able to add a user as a guest to a project specific to that individual, but it looks like I cannot do this programmatically and must instead resort to manually adding them as a guest. Is there anything I'm missing in the API documentation? Is there an undocumented feature that would let me do so? Or am I just out of luck? 回答1: It is currently not possible to manage users of an organization via the API. This is on our API roadmap, which I hope to publish a public version of soon

Update URL in Asana returns nothing

守給你的承諾、 提交于 2019-12-11 21:08:20
问题 When I use https://app.asana.com/api/1.0/workspaces/workspace-id/tasks -d "name=this is a new task" and then also using the POST method... I get a response, but nothing is created in asana... This is the response in JSON format {"data":{"id":5480677401703,"created_at":"2013-05-17T12:55:21.298Z","modified_at":"2013-05-17T12:55:21.298Z","name":"","notes":"","completed":false,"assignee_status":"later","completed_at":null,"due_on":null,"workspace":{"id":1337166104874,"name":"mecad.co.za"},

Hyperlink Mentions of Users in Stories

为君一笑 提交于 2019-12-11 18:55:28
问题 I'm building a script that will notify a hipchat room about changes on tasks, comments, etc. in Asana. I'm facing 3 simple problems but I'm stuck and was thinking maybe some of you could help me. Problem #1: The problem i'm facing is that when someone (a user) get's "mentioned or hyperlinked" in a comment I get a random URL with numbers I can't much to user ID or anything. Maybe there is a logic I'm not seeing? Same with hyperlinks for tasks and projects? Could you please advice what's the

How to get tasks by user in Asana

若如初见. 提交于 2019-12-11 13:58:17
问题 I've just started using the Asana API to make myself a little tool to get an overview of all tasks assigned to me. I can do all kinds of things, like getting all Workgroups, Projects, Users, Tasks by Project etc. But somehow I cannot find how to get all Tasks per user. When you login to Asana, you get an overview of all tasks assigned to you. That's what I try to achieve using the API. Below you'll find the GitHub project I'm using right now. Reference Github: Asana API 回答1: I think I

How to get user picture using Asana API?

廉价感情. 提交于 2019-12-11 10:56:54
问题 I am trying to display user picture using Asana API, nut the /users/id service just return id, mail, name, workspaces. How can I? Thanks 回答1: (I work at Asana) The API does not currently provide access to the user profile photo. It is something we are considering adding in the future, but I can't provide any specifics on the timeline. 回答2: Until the API provides access to the photo, a useful workaround that we've been using is to get the user's email address out of Asana and then try to pull

Copy an Asana task/project

…衆ロ難τιáo~ 提交于 2019-12-11 09:37:23
问题 Is it possible to create a copy of an existing Asana task/project? We have setup some templates that we use when a new order is coming in. The idea is to have one place to do all "paper work" when something comes in and that includes Asana. The easiest would be to just make a copy of one of the template tasks/projects (depending on the order) and then just place the copy in the correct Team. I could not find any endpoints for making duplicates/copies. Each project/task has a lot of subtasks

Slow responses using the Asana API

假装没事ソ 提交于 2019-12-11 09:09:20
问题 Information I've started using the Asana API to make our own task overview in our CMS. I found an API on github which helps me a great deal with this. As I've mentioned in an earlier question, I wanted to get all tasks for a certain user. I've managed to do this using the code below. public function user($id) { if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest')) { $this->layout = 'ajax'; } $asana = new Asana(array( 'apiKey' =>