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

Activities returning useless stories #79

Open
juanjo opened this issue May 28, 2013 · 3 comments
Open

Activities returning useless stories #79

juanjo opened this issue May 28, 2013 · 3 comments

Comments

@juanjo
Copy link

juanjo commented May 28, 2013

I am trying to get the activities of a project and see to which stories those activities are connected with.

If you check the output it is not possible, all the fields in the stories array are nil.

 1.9.3p194 :017 > project.activities.all

 [#<PivotalTracker::Activity:0x007fa6d99134d0 @id=364866149, @version=6026, 
 @event_type="story_update", @occurred_at=Tue, 28 May 2013 17:00:43 +0200, 
 @author="Spiderman Smith", @project_id=675597, @description="Spiderman Smith 
 rejected \"Test Pivotal\"", @stories=[#<PivotalTracker::Story:0x007fa6bd82af50 @id=nil, 
 @url=nil, @created_at=nil, @accepted_at=nil, @project_id=nil, @name=nil, 
 @description=nil, @story_type=nil, @estimate=nil, @current_state=nil,     
 @requested_by=nil, 
 @owned_by=nil, @labels=nil, @jira_id=nil, @jira_url=nil, @other_id=nil,  
 @integration_id=nil, 
 @deadline=nil, @attachments=[]>]>]
@hannahhoward
Copy link

I found this problem originates in the nokogiri happymapper code parsing the XML results returned from pivotal tracker. I'll post a pull request with how I was able to solve it, but I'm not sure if this is the right way.

@hannahhoward
Copy link

#82

Pull request that resolves this issue.

@normancapule
Copy link

Hi guys! I am currently testing this in our project. I specified the gem's [master] branch in the Gemfile in the hopes that the above pull requests fixed it but still no luck.

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

No branches or pull requests

3 participants