Last active
December 22, 2016 15:45
-
-
Save jfuerth/153aca309111e7a7a63a to your computer and use it in GitHub Desktop.
Enhanced Pivotal Tracker Story Links!
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
<!DOCTYPE html> | |
<body style="width: 100%; font-family: helvetica,arial,sans-serif"> | |
<h1>Enhanced Pivotal Tracker Story Links!</h1> | |
<a style="align:center; font-size:40pt; text-decoration: none" href='javascript:void(function(){storyIdPattern = /.*\/([0-9]+)/;storyInternalIdPattern = /story_copy_link_(.*)/;var buttons=document.querySelectorAll("button.link[data-clipboard-text]");for (i = 0; i < buttons.length; i++) {var b=buttons[i];var textAttr=b.attributes.getNamedItem("data-clipboard-text");var storyId=storyIdPattern.exec(textAttr.value)[1];var idAttr=b.attributes.getNamedItem("id");var storyInternalId=storyInternalIdPattern.exec(idAttr.value)[1];var storyTitle=document.getElementById("story_name_"+storyInternalId).value;var idButton=document.getElementById("story_copy_id_"+storyInternalId);idButton.attributes.getNamedItem("data-clipboard-text").value=storyTitle + " [#"+storyId+"]"}}())'>Enhance Story Links</a> | |
<p>To use it: | |
<ol> | |
<li>Drag the above link to your bookmarks bar! | |
<li>Expand one or more stories in Pivotal Tracker | |
<li>Click the bookmark | |
<li>Click the "copy story link" button on a story | |
<li>Paste into your git commit message | |
<li>Profit | |
</ol> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment