Created
August 21, 2012 07:39
-
-
Save acroca/3413187 to your computer and use it in GitHub Desktop.
Bash script to get your started stories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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