Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about using project as an option with tasks.find_all #38

Open
saagar opened this issue Dec 24, 2015 · 5 comments
Open

Question about using project as an option with tasks.find_all #38

saagar opened this issue Dec 24, 2015 · 5 comments

Comments

@saagar
Copy link

saagar commented Dec 24, 2015

Hey guys!

I'm trying to use tasks.find_all to get all tasks in a project that haven't been completed. I'm having some trouble though; it seems like project isn't an accepted default param (assignee and workspace are, but tag and project aren't). I made a change locally to add project in as a parameter, which works, but I'm also having trouble getting all tasks that are incomplete (options: {completed_since: "now" }). Did I forget something/misread the documentation?

[27] pry(main)> ASANA.tasks.find_all(options:{projectId:"id"})
Asana::Errors::InvalidRequest: Must specify exactly one of project, tag, or assignee + workspace

┆Issue is synchronized with this Asana task

@saagar
Copy link
Author

saagar commented Dec 28, 2015

@agnoster @txus looks like this might be caused by the same opt_ issue as #16

@saagar
Copy link
Author

saagar commented Dec 28, 2015

(so instead, I've done response = ASANA.get("/tasks", params: {limit: 20, project: chosen_project, completed_since: "now"}))

@jonahx
Copy link

jonahx commented Jan 18, 2016

thanks for posting your workaround

@voghDev
Copy link

voghDev commented Oct 3, 2017

btw, how does "project id" parameter look like? is it a numeric identifier like 66205418094428?

@smtlaissezfaire
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants