lib/tracker_api/resources/project.rb in tracker_api-1.6.0 vs lib/tracker_api/resources/project.rb in tracker_api-1.7.0

- old
+ new

@@ -207,8 +207,18 @@ # # @return true of false depends on result of delition def delete_webhook(webhook_id) Endpoints::Webhook.new(client).delete_from_project(id, webhook_id) end + + # Search for a term in the given project. This can be an arbitrary term or a specific search query. + # See https://www.pivotaltracker.com/help/articles/advanced_search/ + # + # @param [String] query A versatile search query + # @param [Hash] params + # @return [SearchResultsContainer] An object composed of Epic(s) [EpicsSearchResult] and Story(s) [StoriesSearchResults] + def search(query, params={}) + Endpoints::Search.new(client).get(id, query, params) + end end end end