Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Filter completed tasks #11

Open
blackxored opened this issue Oct 25, 2013 · 1 comment
Open

Filter completed tasks #11

blackxored opened this issue Oct 25, 2013 · 1 comment
Milestone

Comments

@blackxored
Copy link

Also this: harley/asana-ruby#3

@jaxn
Copy link

jaxn commented Apr 30, 2015

If you use Asana::Task.all_by_workspace you can add additional parameters available in Asana's API.

To get only tasks that are incomplete, use completed_since and the current time.

user = Asana::User.me
workspace = user.workspaces[0]
tasks = Asana::Task.all_by_workspace(:params => { 
    :workspace => workspace.id, 
    :assignee => user.id, 
    :completed_since => DateTime.now})

You can also pass in the opt_fields parameter to get more info about the tasks than just their name and id.

(I know this comment was real old. Just leaving this note here for anyone else who stumbles along later)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants