We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e80c8af commit 317d977Copy full SHA for 317d977
1 file changed
lib/extracker/stories.ex
@@ -0,0 +1,19 @@
1
+defmodule ExTracker.Stories do
2
+ import ExTracker
3
+ alias Extracker.Client
4
+
5
+ @doc """
6
+ Get all stories from project
7
8
+ ## Example
9
10
+ ExTracker.Stories.list(client, project_id)
11
12
+ More info at:https://www.pivotaltracker.com/help/api/rest/v5#Stories
13
+ """
14
+ @spec list(Client.t, pos_integer, [{atom, binary}] | []) :: [ExTracker.Record.Story.t] | []
15
+ def list(client, project_id, params \\ []) do
16
+ get("projects/#{project_id}/stories", client, params)
17
+ |> ExTracker.Parser.parse_stories
18
+ end
19
+end
0 commit comments