Pivotal

Pivotal

new Pivotal(apiToken)

Pivotal API Interface

Parameters:
Name Type Description
apiToken string

Pivotal API Token

Source:

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)

Source:

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)

Source:

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)

Source:

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

Source:

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)

Source:

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)

Source:

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

Source:

getLabels(projectId, callbackopt)

Get all labels in project

Parameters:
Name Type Attributes Description
projectId String

Pivotal project id

callback function <optional>

function(error, labels)

Source:

getMemberships(projectId, callbackopt)

Get memberships for project

Parameters:
Name Type Attributes Description
projectId String

Pivotal project id

callback function <optional>

function(error, memberships)

Source:

getMyActivity(callbackopt, optionsopt)

Get API token owner activity

Parameters:
Name Type Attributes Description
callback function <optional>

function(error, events)

options Object <optional>

Extra options

Source:

getProjects(callbackopt)

Obtains list of projects

Parameters:
Name Type Attributes Description
callback function <optional>

function(error, projects)

Source:

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

Source:

getStory(storyId, callbackopt)

Obtains a story

Parameters:
Name Type Attributes Description
storyId String

Pivotal story id

callback function <optional>

function(error, response)

Source:

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

Source:

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)

Source:

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)

Source:

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)

Source: