Skip to content

Instantly share code, notes, and snippets.

@acroca
Created August 21, 2012 07:39
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 acroca/3413187 to your computer and use it in GitHub Desktop.
Save acroca/3413187 to your computer and use it in GitHub Desktop.
Bash script to get your started stories
#!/bin/bash
# Install xmlstarlet: brew install xmlstarlet
# Set your PIVOTAL_TOKEN and PIVOTAL_NAME
for i in `curl -s -H "X-TrackerToken: $PIVOTAL_TOKEN" -X GET http://www.pivotaltracker.com/services/v3/projects | xml sel -t -v "//projects/project/id"`
do
(curl -s -H "X-TrackerToken: $PIVOTAL_TOKEN" -X GET http://www.pivotaltracker.com/services/v3/projects/$i/stories?filter=owner%3A$PIVOTAL_NAME%20state%3Astarted |
xml sel -t -m "//stories/story" -v id -o " - " -v name -n) &
done
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment