Last active
July 12, 2017 20:14
-
-
Save sergiopereiraTT/11196328 to your computer and use it in GitHub Desktop.
Bookmarklet to create a Markdown link for a JIRA issue page
This file contains hidden or 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
javascript:(function(){var d=document;u=d.location.href,s=d.querySelector,n=d.getElementById('key-val').innerText,t=d.getElementById('summary-val').innerText,md='['+n+' - ' + t + ']('+u+')';var temp = d.createElement('input');temp.value = md;temp.style.cssText = 'position:absolute;top:10px;left:10px;';document.body.appendChild(temp);temp.select();temp.focus();temp.addEventListener('keyup', function(evt){ if(evt.which===91){temp.remove();} });}()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a bookmarklet. To use it, add a bookmark in your browser and use the above text as the URL.
When you're in a JIRA issue page you can click the bookmark and get a pre-selected textbox with some markdown like this:
Whir produces this link: XYZ-1234 - This is the issue title