Last active
November 8, 2022 08:59
-
-
Save jandolejs/a5843d2abe15ee2141c22db07b74c5cc to your computer and use it in GitHub Desktop.
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 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); | |
})(); |
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 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