Package 'pivotaltrackR'

Title: A Client for the 'Pivotal Tracker' API
Description: 'Pivotal Tracker' <https://www.pivotaltracker.com> is a project management software-as-a-service that provides a REST API. This package provides an R interface to that API, allowing you to query it and work with its responses.
Authors: Neal Richardson [aut, cre]
Maintainer: Neal Richardson <[email protected]>
License: MIT + file LICENSE
Version: 0.2.0
Built: 2024-11-01 11:15:18 UTC
Source: https://github.com/nealrichardson/pivotaltrackr

Help Index


Add labels to a story

Description

Add labels to a story

Usage

addLabel(story, labels = character(0))

addLabels(story, labels = character(0))

Arguments

story

A story object, a story id, or URL to a story

labels

Character vector of names of labels to add to the story

Value

Invisibly, the story object with the labels added. If the story already has all of the labels you're trying to add, no request will be made.


Get stories

Description

Get stories

Usage

getStories(..., search = NULL, query = list())

Arguments

...

"Filter" terms to refine the query. See https://www.pivotaltracker.com/help/articles/advanced_search/. This is how you search for stories in the Pivotal Tracker web app.

search

A search string

query

List of query parameters. See https://www.pivotaltracker.com/help/api/rest/v5#Stories. Most are not valid when filter terms are used.

Value

A 'stories' object: a list of all stories matching the search.

Examples

## Not run: 
getStories(story_type="bug", current_state="unstarted",
    search="deep learning")

## End(Not run)

Get a story's labels

Description

Get a story's labels

Usage

labels(story)

Arguments

story

A story object, a story id, or URL to a story

Value

A character vector of the names of the labels attached to the story


Create, read, update, and delete a story

Description

Create, read, update, and delete a story

Usage

getStory(story)

createStory(...)

editStory(story, ...)

deleteStory(story)

Arguments

story

An id string or URL to a Story

...

Story attributes to either createStory or editStory. See a list of valid attributes at https://www.pivotaltracker.com/help/api/rest/v5#projects_project_id_stories_post. name is required on creation; all other fields are optional.

Value

deleteStory returns nothing, while the other functions all return a 'story' object: either the requested story (getStory), the newly created story (createStory), or the current state of the modified story editStory.

Examples

## Not run: 
new_bug <- createStory(
    name="Flux capacitor hangs at 0.9 gigawatts",
    description="Please investigate and fix.",
    story_type="bug"
)
new_bug <- editStory(new_bug, current_state="started")
deleteStory(new_bug)

## End(Not run)