I am trying to fetch the Asana task list which has comments of a specific user and tried the below method but it is returning all tasks having the person as a follower. How to fetch the list of only those tasks which are commented on by a specific user?
https://app.asana.com/api/1.0/workspaces/<workspace_id>/tasks/search?created_at.after=2022-01-01T00:00:00.000Z&modified_at.before=2022-01-31T00:00:00.000Z&opt_fields=name,projects&commented_on_by=<user_id>&limit=100
Related
I want to get all tasks my user created.
I tried to use https://graph.microsoft.com/v1.0/drive/root/createdByUser/planner/tasks endpoint in the Graph Explorer, but I got error 500 (internal server error).
The official documentation is here: https://learn.microsoft.com/en-us/graph/api/planneruser-list-tasks?view=graph-rest-1.0&tabs=http
Do you have any suggestion how I can get all the planner tasks I created?
Tasks created by a user is not a supported query. People can lose access to tasks that they have created (e.g. if they are removed from groups). The closest operation you can do is to loop over the plans in the groups you are a member of, read the plans in those tasks and see which ones were created by your user. The API linked in the question will return the tasks assigned to you.
is there a way to retrieve my linkedin saved jobs from the API without registering for the partnership program? (And if not, can I do it by registering?)
you can use linkedin Api console to get the basics of what data you can get.
https://apigee.com/console/linkedin
for your question you just need to add "positions" field to your query in order to get saved jobs.
https://api.linkedin.com/v1/people/~:(id,num-connections,picture-url,positions)?format=json
When I do /asana list I get every task in all projects.
Is it possible to do /asana list #member to show tasks only assigned to me or /asana list To My Tasks to show tasks in a project only? All this without using Zapier?
I would like to add link from mine application to users tasks in asana.
What I found out asana has a following URL for user tasks:
https://app.asana.com/0/{SOME_ID}/{SOME_ID}
Unfortunately SOME_ID is not a user id, but it is something different.
Is there a possibility to get this ID (SOME_ID) through asana rest API ?
And what exactly SOME_ID means ?
The first ID represents the the user's "Assigned to me" project, which we don't actually expose in the API currently. If you want to get the tasks assigned to a user in a workspace, you can GET /tasks?workspace=X&assignee=X.
While trying the Asana API for task stories I noticed that the server sends back a list of all the stories in time-ordered sequence i.e sorted on the created_at field. The first element in the list is the first story of that task and the last item is the latest story. Is this ordering guaranteed by design? And can this be relied upon in the code? I want to get the latest activity by looking at the last element of the returned list. Documentation has no such information.
You're correct, we order stories by creation time in any situation where you get a set of stories. I'm adding that to the documentation now. Thanks for the catch!