Direct link to users tasks

I want to generate a direct link to users task lists:

e.g.

My user id is -
{
id: 42783910289791,
name: “Amit Gangrade”
}

My tasks can be seen in UI as:
https://app.asana.com/0/145619320559182/list

What is this id - 145619320559182?
How can I generate such link?

Thanks for reaching out. Unfortunately, this is a known issue and there isn’t a great workaround. I’ve taken your request to our API team.

I’m not certain of your exact desired workflow, but here are some characteristics of ‘user’s tasks lists’ that you may find helpful in creating a workaround. All user task lists are projects in Asana. They all have the same name: “My Tasks in Asana, Inc”, the team is “null”, and the project’s only collaborator is the task list user.

Sorry we don’t have a better solution for you at this time.

3 Likes

Same need by me. Anyway it seems there is no way, by using the API, to get the project ‘my tasks’. If i try /GET https://app.asana.com/api/1.0/projects?team=null I get the error ‘team cannot be null’

Hey @Harry_Potter, you can get MyTasks with the API if you have the project id – it’s just very convoluted to programmatically find the id. Here’s a thread with a bit more information on potential workarounds: Programmatically attach user object in notes field - #3 by Jeff_Schneider

While I don’t have a timeline, our API team is working to make MyTasks more useable in the API.

1 Like

I would like to use the API to present our team with links, directly to people’s My Tasks. Using the GID like so https://app.asana.com/0/${user.gid}/list will not work. Any workaround available already?

Hi @Kevin_van_Zonneveld and welcome to the forum!

A user’s My Tasks list is referred to in the API as their “User Task List (UTL)”. A user’s UTL has its own gid distinct from the user’s gid.

What you want to do is take the user’s gid and call /users/{user_gid}/user_task_list; that will return you the gid of the user’s UTL. (See the API documentation here.) You should then be able to use their UTL gid in that hyperlink.