jsmestad / pivotal-tracker

Ruby gem that provides an AR-style interface for the Pivotal Tracker API
http://github.com/jsmestad/pivotal-tracker
MIT License
352 stars 184 forks source link

Iteration.current(@proj).stories #93

Open kleetus opened 10 years ago

kleetus commented 10 years ago

This returns no stories when stories exist.

Before I get into debugging the gem for this, is this gem still being maintained?

jasonnoble commented 10 years ago

Hi Chris! Yes, this project is being maintained.

kleetus commented 10 years ago

Thanks Jason, getting the current iteration stories this way:

Iteration.current(@proj).stories

where @proj is a valid PivotalTracker::Project worked for months and now I can't gather any stories this way. I can use @proj to find an individual story. Is there an easy way to see the URL that the gem is using to get the current stories?

jasonnoble commented 10 years ago

I use a proxy software like Charles (http://www.charlesproxy.com/), then force all my network connections through there.

I did the following to debug:

irb
>> require 'pivotal-tracker'
>> PivotalTracker::Client.token = '23456789034567890abcedeaf'
>> @project = PivotalTracker::Project.find(456789)
>> PivotalTracker::Iteration.current(@project).stories

For me, it is returning stories. Do any of the other Iteration methods work? Try start and finish. Full docs: https://github.com/jsmestad/pivotal-tracker/blob/master/lib/pivotal-tracker/iteration.rb

kleetus commented 10 years ago

Jason: the issue is related to the data structure returned -OR- how the response is parsed (HappyMapper or libxml). The api seems to be returning good data when trying the connection via curl. I am still tracking this down, but I will let you know what I find. Chances are, its my mistake, but I will certainly send a PR if I find otherwise.