Last active
August 29, 2015 14:03
-
-
Save tgsoverly/ab021efbc65e9b9d00ea to your computer and use it in GitHub Desktop.
Script to Link Pivotal Tracker Stories to Zendesk Tickets after both have been created.
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
# Set these up once, and generally forget for each linking | |
export TOKEN='YOUR TRACKER TOKEN' | |
export PROJECT_ID='Project Id from Tracker URL' | |
# Change these for each ticket to link | |
export STORY_ID='Story ID from Tracker URL' | |
export EXTERNAL_ID='Ticket ID from Zendesk URL' | |
curl -X PUT -H "X-TrackerToken: $TOKEN" -H "Content-Type: application/json" \ | |
-d "{\"integration_id\":21611, \"external_id\":\"$EXTERNAL_ID\"}" "https://www.pivotaltracker.com/services/v5/projects/$PROJECT_ID/stories/$STORY_ID" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment