lib/tracker_api/resources/project.rb in tracker_api-1.9.0 vs lib/tracker_api/resources/project.rb in tracker_api-1.9.1
- old
+ new
@@ -129,9 +129,22 @@
# @return [Array[Story]] stories associated with this project
def stories(params={})
Endpoints::Stories.new(client).get(id, params)
end
+ # Provides a list of all the releases in the project.
+ #
+ # @param [Hash] params
+ # @option params [String] :with_state A release's current_state which all returned releases must match.
+ # Valid enumeration values: accepted, delivered, finished, started, rejected, unstarted, unscheduled
+ # @option params [Integer] :offset With the first release in your priority list as 0,
+ # the index of the first release you want returned.
+ # @option params [Integer] :limit The number of releases you want returned.
+ # @return [Array[Release]] releases associated with this project
+ def releases(params={})
+ Endpoints::Releases.new(client).get(id, params)
+ end
+
# Provides a list of all the memberships in the project.
#
# @param [Hash] params
# @return [Array[ProjectMembership]] memberships of this project
def memberships(params={})