Ruby Asana Gem - Get all tasks with particular tag -


im using ruby asana gem https://github.com/rbright/asana.

as per documentation, in controller have:

tag = asana::tag.find(6498432136675) @waiting_tasks = tag.tasks 

however, returns:

failed.  response code = 400.  response message = bad request. 

i have confirmed id correct. if use:

puts tag.inspect 

i following:

#<asana::tag:0x007f94432af498 @attributes={"id"=>6498432136675, "created_at"=>"2013-07-14t10:05:13.070z", "name"=>"waiting for", "notes"=>"", "workspace"=>#<asana::workspace:0x007f94432aea98 @attributes={"id"=>6399696678844, "name"=>"ministry of crazy ideas"}, @prefix_options={}, @persisted=false>, "color"=>"light-teal", "followers"=>[]}, @prefix_options={}, @persisted=true> 

i dont understand why not returning tasks documented in read me. if can shed light on hugely grateful.

sounds it's bug in ruby gem. however, underlying api issue. try curl -u <your api key>: https://app.asana.com/api/1.0/tags/6498432136675/tasks - if works, gem isn't constructing right url (aka, one). if still returns 400, issue may api.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -