-
Notifications
You must be signed in to change notification settings - Fork 109
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
Fetching tasks give an invalid endpoint error #12
Comments
https://www.pivotaltracker.com/help/api/rest/v5#projects_project_id_stories_story_id_tasks_get the example in curl works fine |
I re-ran the specs for getting tasks and it is working. If you delete the vcr/cassette for getting tasks the spec will make real requests to the test project. https://github.com/dashofcode/tracker_api/blob/master/test/story_test.rb#L12 Are you sure you have the project_id and story_id correct? |
Yeah these should by fine, I used the following code:
But I will try by using |
Hmmm. That should work. I'll try to dig in a bit more this week. |
(not having |
I've found what is causing this, I specify the fields I want from a userstory. When I do not ask for the |
See https://github.com/dashofcode/tracker_api/blob/master/lib/tracker_api/endpoints/stories.rb#L14 Changing it into: |
Good find. I'll add some specs to make sure I can break it by excluding the |
When fetching a story, and calling
story.tasks
the code gives an error:It does not matter if you include
tasks
in the list of fields when fetching a story.The text was updated successfully, but these errors were encountered: