Skip to content

Instantly share code, notes, and snippets.

@jandolejs
Last active November 8, 2022 08:59
Show Gist options
  • Save jandolejs/a5843d2abe15ee2141c22db07b74c5cc to your computer and use it in GitHub Desktop.
Save jandolejs/a5843d2abe15ee2141c22db07b74c5cc to your computer and use it in GitHub Desktop.
javascript: (function() {
var pzko = "";
var header = document.querySelector('#partial-discussion-header h1.gh-header-title .js-issue-title');
if (header) {pzko = header.innerText.trim().match(/^PZ-\d+/); }
pzko = window.prompt("Zadej číslo úkolu", pzko);
if (pzko.match(/^\d+$/)) {pzko = "PZ-" +pzko; }
var url = "https://atelidev.atlassian.net/browse/" +encodeURI(pzko);
window.open(url);
console.log(url);
})();
javascript: (function() {
var header = document.querySelector('#partial-discussion-header h1.gh-header-title .js-issue-title');
var pzko = header.innerText.trim().match(/PZ-\d+/);
var url = "https://atelidev.atlassian.net/browse/" +encodeURI(pzko);
window.open(url);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment