tracker_api/lib/tracker_api/endpoints/story.rb in v2gpti-1.2.3 vs tracker_api/lib/tracker_api/endpoints/story.rb in v2gpti-1.2.4

- old
+ new

@@ -30,8 +30,13 @@ data = client.put("/projects/#{story.project_id}/stories/#{story.id}", params: params).body story.attributes = data end + + def add_label(story, params = {}) + raise ArgumentError, 'Valid story required to update.' unless story.instance_of?(Resources::Story) + data = client.post("/projects/#{story.project_id}/stories/#{story.id}/labels", params: params).body + end end end end