My Tasks - Section: Today API

Hey All. thanks in advance and I apologise if this question has been asked before. I can’t seem to find the answer.

So I am trying to create a simple dashboard to view my tasks for today only using the ASANA Api.
So I have read that if I specify the project, I can specifiy the sections ID but…
I want to view all my tasks across all my projects that are not complete and in the “today” section. how do I create that url?

Hi @luckydem and welcome to the forum!

To get your tasks via the API, you’ll want to use the User Tasks List endpoints, which return those tasks assigned to you and showing in your “My Tasks” view:

https://developers.asana.com/docs/#asana-user-task-lists

There is no endpoint which just returns tasks by Due Date, so you’ll need to get a list of all of your tasks via this endpoint:

https://developers.asana.com/docs/#get-tasks-from-a-user-task-list

and then do your own filtering logic to find those that are due today.

Hi @luckydem!

I quickly want to mention that you can also achieve what you are asking for with Bridge24 for Asana.

Hope this helps!
Emilie

@luckydem,

If you weren’t aware, it’s simple to do this right in Asana (no API, no third party tool) using Advanced Search (if you’re on a paid plan):

To get that last parameter for Today/Upcoming/Later, use Add filter in the bottom left and look in the More menu items.

Larry

Thank you kindly for your response.
Maybe this is the same thing but I’m referring to the default sections that Asana provides when viewing “my tasks”, eg: recently assigned | today | upcoming and not for the due date.

With regards the other comments, thanks for the feedback. The reason why I’m creating my own web interface using ASANA’S API is because I have multiple workspaces and I would like to view all my tasks in one place.

It has been done by a few people before and there are a couple of repositories out there that people have shared, but I haven’t found one that works the way I want it to and the chrome extensions that I found didn’t work either.

So… It gives me the opportunity to learn more about APIs and webhooks etc and does a great job of distracting me from my actual work :slight_smile:

1 Like

Ah, OK.

You’ll still want to use the User Task List endpoint, and there’s still no way to filter out tasks that are only in the 'Today" section so you’ll need to retrieve the whole list and do your own filtering.

Here an example of what you might want to do:

GET /user_task_lists/159xxxxxxxxx130/tasks?completed_since=now&opt_fields=name,assignee_status

completed_since=now will filter out completed tasks and give you only uncompleted tasks.

assignee_status is the string value of the section - i.e. "today, “upcoming”, “later”, etc.

1 Like