Skip to content

Instantly share code, notes, and snippets.

@bhameyie
Created May 28, 2013 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhameyie/5666641 to your computer and use it in GitHub Desktop.
Save bhameyie/5666641 to your computer and use it in GitHub Desktop.
pivotaltrackerdotnet sample
//Getting the authentication token
var token = AuthenticationService.Authenticate(Constants.Username, Constants.Password);
//With the authentication token, retrieving those stories is trivial
var service = new StoryService(token);
var stories= service.GetCurrentStories(projectId);
//This will return a list of Story objects with their associated tasks. If you would prefer getting the Iterations, which contains a list of stories *without their associated tasks*, that is easy as well.
var iterations = service.GetCurrentIterations(projectId);
//Say I wanted to retrieve all bugs associated with a particular label.
var stories = service.GetAllStoriesMatchingFilter(projectId, FilteringCriteria.FilterBy.Label("my label").Type(StoryType.Bug));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment