Skip to content

Commit

Permalink
allow retrieving of blockers from story resource
Browse files Browse the repository at this point in the history
  • Loading branch information
kang sheng committed Jul 23, 2019
1 parent e8aee41 commit 6c9ab2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/tracker_api/resources/story.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class Story
attribute :accepted_at, DateTime
attribute :after_id, Integer
attribute :before_id, Integer
attribute :blockers, [Blocker]
attribute :comment_ids, [Integer]
attribute :comments, [Comment]
attribute :created_at, DateTime
Expand Down Expand Up @@ -118,6 +119,10 @@ def activity(params = {})
Endpoints::Activity.new(client).get_story(project_id, id, params)
end

def blockers(params = {})
Endpoints::Blockers.new(client).get(project_id, id, params)
end

# Provides a list of all the comments on the story.
#
# @param [Hash] params
Expand Down

0 comments on commit 6c9ab2f

Please sign in to comment.