-
Notifications
You must be signed in to change notification settings - Fork 4
/
copy-title
1 lines (1 loc) · 2.38 KB
/
copy-title
1
javascript:(function(){'use strict';function a(){window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges()}function b(b,c){var d=document.createTextNode(`${b}`);document.body.appendChild(d),setTimeout(()=>{var b=document.createRange();b.selectNode(d);window.getSelection&&(window.getSelection().addRange(b),document.execCommand("copy"),a(),JIRA.Messages.showSuccessMsg(c),document.body.removeChild(d))},200)}function c(){var a=document.getElementById("summary-val")||document.querySelector(".issuerow.focused > .summary"),b=document.querySelector("#key-val")||document.querySelector("#issuekey-val a")||document.querySelector(".issuerow.focused > .issuekey"),c=b.textContent,d=a.textContent;return{keyString:`${c}`,titleString:`${c} ${d}`}}const d={en:{pleaseEnter:()=>"Please enter the cost per hour in \u20AC:",costResult:a=>`Estimatet cost for displayed issues: ${a} €.`,notANumber:()=>"This is not a number. Please try again.",estimateOutput:a=>`Estimated remaining effort for the displayed issues: ${a} PT.`,goToNavigator:()=>"Error: Please go to the Jira issue navigator.",changeViewTypeToList:()=>"Error: Please change view type to list.",enableRemainingEstimateColumn:()=>"Error: Please enable the column '\u03A3 Remaining Estimate.'",copiedIssueTitle2Clipboard:()=>"Issue key & summary copied successfully to clipboard \uD83D\uDCCB.",copiedIssueKey2Clipboard:()=>"Issue key copied successfully to clipboard \uD83D\uDCCB."},de:{pleaseEnter:()=>"Bitte die Kosten f\xFCr eine Arbeitsstunde in \u20AC eingeben:",costResult:a=>`Ungefähre Kosten für angezeigte Tickets: ${a} €.`,notANumber:()=>"Das ist leider keine g\xFCltige Zahl. Versuch's nochmal.",estimateOutput:a=>`Geschätzter restlicher Aufwand für angezeigte Tickets: ${a} PT.`,goToNavigator:()=>"Fehler: Bitte gehe zum Jira Vorgangsnavigator.",changeViewTypeToList:()=>"Fehler: Bitte wechsel die Anzeige zu 'Liste'.",enableRemainingEstimateColumn:()=>"Fehler: Bitte aktiviere die Spalte '\u03A3 Remaining Estimate.'",copiedIssueTitle2Clipboard:()=>"Ticketnummer & -zusammenfassung erfolgreich in die Zwischenablage kopiert \uD83D\uDCCB.",copiedIssueKey2Clipboard:()=>"Ticketnummer erfolgreich in die Zwischenablage kopiert \uD83D\uDCCB."}},e=document.documentElement.lang,f=e in d?d[e]:d.en;(function(){var a=c();setTimeout(()=>{b(a.titleString,f.copiedIssueTitle2Clipboard())},200)})()})();