License: MIT
To install:
npm install pivotal
var pivotal = require("pivotal");
pivotal.useToken("myToken");You can also retrieve the token initially by using the pivotal.getToken function
When making changes to the library, please run make doc before submitting pull requests.
ref: https://www.pivotaltracker.com/help/api?version=v3#retrieve_token_post
Arguments
- user : user name (email)
- pass : the user's password
Arguments
- token: A valid Pivotal Token
ref: https://www.pivotaltracker.com/help/api?version=v3#get_all_activity
and
https://www.pivotaltracker.com/help/api?version=v3#get_project_activity
Arguments
- filters : Limits the return data
{
project (int) : project id
limit : maximum return entries
occurred_since_date : earliest date for return entries
newer_than_version : allows restricting the activity feed to only those items that have a greater than supplied version
}ref: https://www.pivotaltracker.com/help/api?version=v3#get_project_all_projects
ref: https://www.pivotaltracker.com/help/api?version=v3#get_project_info
Arguments
- id (int) : id of the project
ref: https://www.pivotaltracker.com/help/api?version=v3#add_project
Arguments
- project : Data of the project to add
{
name (string) : The project's name
iteration_length (int) : Iteration length
no_owner (boolean, optional) : Does the project have an owner?
}ref: https://www.pivotaltracker.com/help/api?version=v3#get_memberships
Arguments
- projectId (int) : id of the project
ref: https://www.pivotaltracker.com/help/api?version=v3#get_membership_info
Arguments
- projectId (int) : id of the project
- membershipId (int) : id of the member
ref: https://www.pivotaltracker.com/help/api?version=v3#add_membership
Arguments
- projectId (int) : id of the project
- membershipData : Data of the new member
{
role : Member or Owner
person : Personal information {
name : Person's full name
initials : Name's initials
email : E-mail
}
}Note: The user does not have to be in the system already. He will receieve an email asking him to join if he does not have a project already.
ref: https://www.pivotaltracker.com/help/api?version=v3#remove_membership
Arguments
- projectId (int) : id of the project
- membershipId (int) : id of the member
ref: https://www.pivotaltracker.com/help/api?version=v3#get_iterations
Arguments
- projectId (int) : id of the project
- membershipId (int) : id of the member
ref: https://www.pivotaltracker.com/help/api?version=v3#get_iterations
Arguments
- projectId (int) : id of the project
ref: https://www.pivotaltracker.com/help/api?version=v3#get_iterations
Arguments
- projectId (int) : id of the project
- membershipId (int) : id of the member
ref: https://www.pivotaltracker.com/help/api?version=v3#get_iterations
Arguments
- projectId (int) : id of the project
ref: https://www.pivotaltracker.com/help/api?version=v3#get_iterations
Arguments
- projectId (int) : id of the project
ref: https://www.pivotaltracker.com/help/api?version=v3#get_all_stories
Arguments
- projectId (int) : id of the project
- filters : Limits the return data
{
limit : maximum return entries
offset : start from story num. N in the list
filter : search string to use (ex: filter=label:"needs feedback" type:bug)
}ref: https://www.pivotaltracker.com/help/api?version=v3#get_story
Arguments
- projectId (int) : id of the project
- storyId (int) : id of the story
ref: https://www.pivotaltracker.com/help/api?version=v3#add_story
and
https://www.pivotaltracker.com/help/api?version=v3#link_story
Arguments
- projectId (int) : id of the project
- storyData : data of the story
{
name : Name of this story
story_type : bug, feature, chore, release
estimate (int) : number which indicates the level of difficulty of the story
description : description,
labels : Comma-separated list of labels
requested_by : Name of the requester
(should be an existing member person name,
but I dont know if this is an actual limitation)
}ref: https://www.pivotaltracker.com/help/api?version=v3#upload_attachment
Arguments
- projectId (int) : id of the project
- storyId (int) : id of the story
- fileData : information of file to upload
{
name : filename of the file after upload
path : path to the file on disk
data : if no path is provided, one may
simply put the data of the file in there instead
}ref: https://www.pivotaltracker.com/help/api?version=v3#add_note
Arguments
- projectId (int) : id of the project
- storyId (int) : id of the story
- comment (string) : The text of the comment to add
ref: https://www.pivotaltracker.com/help/api?version=v3#update_story
Arguments
- projectId (int) : id of the project
- storyData : data of the story
{
project_id : Id of the project
name : Name of this story
story_type : bug, feature, chore, release
estimate (int) : number which indicates the level of difficulty of the story
description : description,
labels : Comma-separated list of labels
requested_by : Name of the requester
(should be an existing member person name,
but I dont know if this is an actual limitation)
}ref: https://www.pivotaltracker.com/help/api?version=v3#move_stories
Arguments
- projectId (int) : id of the project
- storyId (int) : id of the story
- moveData : Information on how the move should happen
{
target : Id of the destination story
move : before or after (the target story)
}ref: https://www.pivotaltracker.com/help/api?version=v3#delete_story
Arguments
- projectId (int) : id of the project
- storyId (int) : id of the story
ref: https://www.pivotaltracker.com/help/api?version=v3#deliver_all_finished
Arguments
- projectId (int) : id of the project
ref: https://www.pivotaltracker.com/help/api?version=v3#view_task
Arguments
- projectId (int) : id of the project
- storyId (int) : id of the story
ref: https://www.pivotaltracker.com/help/api?version=v3#view_task
Arguments
- projectId (int) : id of the project
- storyId (int) : id of the story
- taskId (int) : id of the task
ref: https://www.pivotaltracker.com/help/api?version=v3#add_task
Arguments
- projectId (int) : id of the project
- storyId (int) : id of the story
- taskData : data of the task
{
description : text of the task
complete : true of false
}ref: https://www.pivotaltracker.com/help/api?version=v3#update_task
Arguments
- projectId (int) : id of the project
- storyId (int) : id of the story
- taskId (int) : id of the task
- taskData : data of the task
{
description : text of the task
complete : true of false
}ref: https://www.pivotaltracker.com/help/api?version=v3#delete_task
Arguments
- projectId (int) : id of the project
- storyId (int) : id of the story
- taskId (int) : id of the task