lib/tracker_api/endpoints/stories.rb in tracker_api-1.9.0 vs lib/tracker_api/endpoints/stories.rb in tracker_api-1.9.1
- old
+ new
@@ -15,8 +15,18 @@
data.map do |story|
Resources::Story.new({ client: client, project_id: project_id }.merge(story))
end
end
+
+ def get_release(project_id, release_id, params={})
+ data = client.paginate("/projects/#{project_id}/releases/#{release_id}/stories", params: params)
+
+ raise Errors::UnexpectedData, 'Array of stories expected' unless data.is_a? Array
+
+ data.map do |story|
+ Resources::Story.new({ client: client, project_id: project_id }.merge(story))
+ end
+ end
end
end
end