Skip to content

Instantly share code, notes, and snippets.

@waltz
Last active March 4, 2024 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waltz/3a9cc386c7bbb431e73ca39ebab5cc06 to your computer and use it in GitHub Desktop.
Save waltz/3a9cc386c7bbb431e73ca39ebab5cc06 to your computer and use it in GitHub Desktop.
jira copy name bookmarklet
<html><body>
<h1>Jira Bookmarklet</h1>
<ul>
<li>Drag this link in to your bookmarks bar.</li>
<li>View a Jira issue. It can be on an individual issue page or when the story is focused in a modal.</li>
<li>Click the bookmarklet!</li>
<li>The bookmarklet will copy the story title and url to the clipboard as a markdown link.</li>
<li>Paste in to your PR.</li>
</ul>
<a href="javascript:void%20function(){javascript:(()=%3E{var%20a=document.querySelector(%22h1[data-testid$=\%22summary.heading\%22]%22).innerText,b=document.location.href,c=`🔷🔗:%20[${a}](${b})`;console.log(%22Copying%20link%20to%20clipboard:%22,c),navigator.clipboard.writeText(c)})()}();">🔷🔗</a>
</body></html>
@waltz
Copy link
Author

waltz commented Mar 4, 2024

@waltz
Copy link
Author

waltz commented Mar 4, 2024

I used Bookmarkleter to compact the code and escape characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment