Add this as new bookmark, in the URL field:
Put on your bookmarks tab and use. Of course Jira tab has to be open.
Warning: Tested only on Chrome.
With compliments to stefanmaric, https://gist.github.com/stefanmaric/2abf96c740191cda3bc7a8b0fc905a7d
Add this as new bookmark, in the URL field:
Put on your bookmarks tab and use. Of course Jira tab has to be open.
Warning: Tested only on Chrome.
With compliments to stefanmaric, https://gist.github.com/stefanmaric/2abf96c740191cda3bc7a8b0fc905a7d
| javascript:!function(a){var b=document.createElement("textarea"),c=document.getSelection();b.textContent=a,document.body.appendChild(b),c.removeAllRanges(),b.select(),document.execCommand("copy"),c.removeAllRanges(),document.body.removeChild(b)}(document.title.split("]")[0].replace("[","")+" - "+document.getElementById("summary-val").textContent); |
| // this one simply copies ticket # + title and replaces all spaces with -, thus should be enough to copy this as branch name for git | |
| javascript:!function(a){var b=document.createElement("textarea"),c=document.getSelection();b.textContent=a,document.body.appendChild(b),c.removeAllRanges(),b.select(),document.execCommand("copy"),c.removeAllRanges(),document.body.removeChild(b)}(document.title.split("]")[0].replace("[","")+"-"+document.getElementById("summary-val").textContent.split(" ").join("-").split(":").join("-")); |
Didn't work on Firefox last time I checked, I'm back to Chrome and its good on that