new Pivotal(apiToken)
Pivotal API Interface
Parameters:
Name | Type | Description |
---|---|---|
apiToken |
string | Pivotal API Token |
Methods
createLabel(projectId, name, callbackopt)
Create label
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
projectId |
String | Pivotal project id |
|
name |
String | Name of label |
|
callback |
function |
<optional> |
function(error, label) |
createStory(projectId, paramsopt, callbackopt)
Create new Pivotal story
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
projectId |
String | Pivotal project id |
|
params |
Object |
<optional> |
Story parameters |
callback |
function |
<optional> |
function(error, story) |
exportStories(stories, callbackopt)
Export stories from Pivotal
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
stories |
Array.<String> | List of story id's |
|
callback |
function |
<optional> |
function(error, response) |
getActivity(projectId, optionsopt, callbackopt, completedopt, offsetopt, limitopt)
Get paginated activity from project
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
projectId |
String | Pivotal project id |
|
options |
Object |
<optional> |
Extra options |
callback |
function |
<optional> |
function(events, pagination, callback(error or true to stop pagination)) |
completed |
function |
<optional> |
function(error) |
offset |
Integer |
<optional> |
Initial pagination offset |
limit |
Integer |
<optional> |
Pagination limit for each response |
getComments(projectId, storyId, callbackopt)
Get comments from story
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
projectId |
String | Pivotal project id |
|
storyId |
String | Pivotal story id |
|
callback |
function |
<optional> |
function(error, comments) |
getCurrentIterations(projectId, callbackopt)
Get current iteration stories from project
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
projectId |
String | Pivotal project id |
|
callback |
function |
<optional> |
function(error, iterations) |
getIterations(projectId, optionsopt, callbackopt, completedopt, offsetopt, limitopt)
Get paginated iterations for project
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
projectId |
String | Pivotal project id |
|
options |
Object |
<optional> |
Extra options |
callback |
function |
<optional> |
function(iterations, pagination, callback(error or true to stop pagination)) |
completed |
function |
<optional> |
function(error) |
offset |
Integer |
<optional> |
Initial pagination offset |
limit |
Integer |
<optional> |
Pagination limit for each response |
getLabels(projectId, callbackopt)
Get all labels in project
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
projectId |
String | Pivotal project id |
|
callback |
function |
<optional> |
function(error, labels) |
getMemberships(projectId, callbackopt)
Get memberships for project
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
projectId |
String | Pivotal project id |
|
callback |
function |
<optional> |
function(error, memberships) |
getMyActivity(callbackopt, optionsopt)
Get API token owner activity
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
function |
<optional> |
function(error, events) |
options |
Object |
<optional> |
Extra options |
getProjects(callbackopt)
Obtains list of projects
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
callback |
function |
<optional> |
function(error, projects) |
getStories(projectId, optionsopt, callbackopt, completedopt, offsetopt, limitopt)
Get paginated stories from project
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
projectId |
String | Pivotal project id |
|
options |
Object |
<optional> |
Extra options |
callback |
function |
<optional> |
function(stories, pagination, callback(error or true to stop pagination)) |
completed |
function |
<optional> |
function(error) |
offset |
Integer |
<optional> |
Initial pagination offset |
limit |
Integer |
<optional> |
Pagination limit for each response |
getStory(storyId, callbackopt)
Obtains a story
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
storyId |
String | Pivotal story id |
|
callback |
function |
<optional> |
function(error, response) |
getStoryActivity(projectId, storyId, callbackopt, optionsopt)
Get activity for story
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
projectId |
String | Pivotal project id |
|
storyId |
String | Pivotal story id |
|
callback |
function |
<optional> |
function(error, events) |
options |
Object |
<optional> |
Extra options |
getTasks(projectId, storyId, callbackopt)
Get tasks for story
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
projectId |
String | Pivotal project id |
|
storyId |
String | Pivotal story id |
|
callback |
function |
<optional> |
function(error, tasks) |
postAttachment(projectId, storyId, filepath, type, comment, callbackopt)
Post attachment to story
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
projectId |
String | Pivotal project id |
|
storyId |
String | Pivotal story id |
|
filepath |
String | Path of attachment |
|
type |
String | Content type of attachment |
|
comment |
String | Comment text |
|
callback |
function |
<optional> |
function(error, response) |
updateStory(projectId, storyId, paramsopt, callbackopt)
Update a story
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
projectId |
String | Pivotal project id |
|
storyId |
String | Pivotal story id |
|
params |
Object |
<optional> |
Extra parameters |
callback |
function |
<optional> |
function(error, response) |