Skip to content

Instantly share code, notes, and snippets.

@stresler
Created January 7, 2015 18:41
Show Gist options
  • Save stresler/f6767ccc66ea2d144912 to your computer and use it in GitHub Desktop.
Save stresler/f6767ccc66ea2d144912 to your computer and use it in GitHub Desktop.
Pivotal Issues Created
#!/bin/bash
PIVOTAL_TOKEN=$PIVOTAL_TOKEN
#milliseconds since the epoch http://www.epochconverter.com/
BEGIN=1417410001000
END=1420088399000
PROJECTS=(1168276 1205034 1202754 1221220)
for p in "${PROJECTS[@]}"
do
curl -X GET -H "X-TrackerToken: $PIVOTAL_TOKEN" "https://www.pivotaltracker.com/services/v5/projects/$p/stories?created_after=$BEGIN&created_before=$END&limit=1000&fields=id" | sed 's/,/\n/g' | wc -l
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment