asana

How to expose asana task creator?

血红的双手。 提交于 2019-12-23 05:16:21
问题 I need to be able to expose who created a task in asana via the API. Currently I am only getting back who created comments on the task, who is currently assigned to the task, and who is following the task. This leaves me guessing who actually created the task. Thanks! 回答1: Asana support got back to me first by email so I will answer this for anyone else. Bit of a workaround. Api calls to: /tasks/{task-id}/stories /projects/{project-id}/stories These will give you the system messages generated

Access Inbox items from the API?

时光毁灭记忆、已成空白 提交于 2019-12-23 03:43:14
问题 Is there a way to access the items in a workspace's inbox via the API? I'm primarily interested in the unread count, but could make good use out of any unhidden items as well. 回答1: At the moment you can't do this with a simple API call. You might be able to do it by pulling down all projects, and then pulling down all the tasks for each project, storing that in a local database, and then search for tasks with assignee_status set to "inbox" (https://asana.com/developers/api-reference/tasks).

Change priority headings for a task with the api

∥☆過路亽.° 提交于 2019-12-22 10:07:26
问题 I know it's possible to create a priority headings with the api (a task ends with :). Someone knows if it's possible to assign a priority headings to a task thanks to the api ? Thanks, Ludovic 回答1: Even though this feature is not supported literally by the API, you can still use a workaround to do it. First, get the ID of the priority heading that must be on top of your task. Then, change the order (priority) of the task with the method "addProject" on the task's endpoint and move it right

get asana project id

狂风中的少年 提交于 2019-12-21 11:40:07
问题 I am trying to find out how to get the workspace and project id's from the main web app. I cant seem to find them anywhere. I am attempting to write a VB.Net app and am trying to get some info out of the API other than 400 Bad request. If I had these id's I might be able to get further 回答1: I put app.asana.com/api/1.0/workspaces into a browser (after I had logged into Asana) and it gave me all of my workspace ID's. 回答2: The Project ID is most easily found in the URL of your project when using

SSL Error occurs on one computer but not the other?

大憨熊 提交于 2019-12-20 04:38:26
问题 I can't figure out why all of a sudden the below code that uses Asana's API generates the below SSL error. Something must have changed on my laptop, since it runs perfectly on my other computer. from asana import asana class Login(object): def __init__(self): api = 'API' self.asana_api = asana.AsanaAPI(api, debug=False) self.user_id = 7359085011308L class Test(Login): def Test(self): Id = 2467584555313L print self.asana_api.list_tasks(Id,self.user_id) Traceback (most recent call last): File "

Storing only task id in an array

三世轮回 提交于 2019-12-13 15:43:20
问题 I am creating a program that will automate some functions with Asana for my workplace but am a bit stuck. I am able to submit multiple tasks to a workspace and retrieve the task ID's of each but was wondering how to take only the ID portion of the response and store it into an array or list in C#. The response from the GET on /tasks?workspace=<workspace-id>&assignee=me is: {"data":[{"id":2177890732156,"name":"<name of my task>"}]} I want to store the id number(s) from all my tasks into an

retrieve RESTful data using JQuery ajax() method

时光毁灭记忆、已成空白 提交于 2019-12-13 02:56:53
问题 I am trying to pull in information from Asana API via JQuery.ajax() method. But no desired result is returned, or error showed. Here is my partial code in JavaScript: $(document).ready(function () { $('#buttonCallAjax').click(function () { jQuery.support.cors = true; $.ajax( { type: "GET", url: "https://app.asana.com/api/1.0/users/me", data: "{}", contentType: "application/x-www-form-urlencoded; charset=utf-8", dataType: "jsonp", success: function (data) { alert(data); }, error: function (msg

How to Set Rich Text in Asana Project Description via API

允我心安 提交于 2019-12-12 23:52:08
问题 Is there a way to include rich text when setting the project description via the API? I can set the description via the notes attribute, but any HTML renders as plain text. I have also tried using html_text. Sample request: { "data": { "name": "Test project", "notes": "<strong>Sample project description</strong>", "html_text": "<strong>Sample project description</strong>", "team": <team_number>, "workspace": <workspace_id> } } 回答1: In principle, you're on the right track. However, there are a

How to get rich text formatting from asana task API

╄→гoц情女王★ 提交于 2019-12-12 18:06:32
问题 Asana added rich text formatting in June 2014 (https://blog.asana.com/2014/06/rich-text/) How do you get the formatting metadata from the Asana API? For example, if I fill in a task description with: some bold text. some italic text a list foo bar sublist a b c baz The API returns the following for the note field, which excludes any formatting info: "notes":"some bold text. some italic text\n\na list\n\nfoo\n\nbar\n\nsublist \na\nb\nc\nbaz" 回答1: We do not currently support rich text

Asana Api Rails Attachment

笑着哭i 提交于 2019-12-12 06:21:13
问题 I am attempting to add an attachment to an Asana task. My JSON request body is as follows: request_body = { "data" => { "file" => "@#{attachment.tempfile}" } } I receive this output on the POST: error: file: File is not an object The "attachment" variable is a regular rails form attachment. Any ideas? -----EDIT----- For anyone looking in the future, I figured it out using the Faraday gem. Here is the code I used: connection = Faraday.new(:url => @uri) do |conn| conn.response :logger conn