Skip to content

Instantly share code, notes, and snippets.

@maxparm
Created May 7, 2019 22:22
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 maxparm/2e72c753f034f18b049067c154181507 to your computer and use it in GitHub Desktop.
Save maxparm/2e72c753f034f18b049067c154181507 to your computer and use it in GitHub Desktop.
Bookmarklet for Jira to Github Issue
javascript:(function(){
var url = location.href;
var title = `${document.getElementById('key-val').innerText} ${document.getElementById('summary-val').innerText}`;
var description = document.getElementById('description-val').innerText;
body = `
### Description
[Jira](${location.href})
${description}
### Test Plan
`;
window.open(`https://github.com/7Geese/7Geese/issues/new?assignee=maxparm&label[]=${encodeURIComponent('type-task')}&title=${encodeURIComponent(title)}&body=${encodeURIComponent(body)}`);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment