├── README.md ├── background.js ├── content.js ├── icon128.png ├── icon16.png ├── icon48.png └── manifest.json /README.md: -------------------------------------------------------------------------------- 1 | # jira-issue-easyCopy 2 | A Chrome extension to copy the issue number + the issue description in one click ! 3 | 4 | Available on the Chrome Web Store here : https://chrome.google.com/webstore/detail/jira-issue-easycopy/phkppaelmhlpnoolfdpfklchkmmncmlo 5 | -------------------------------------------------------------------------------- /background.js: -------------------------------------------------------------------------------- 1 | chrome.browserAction.onClicked.addListener(function(tab) { 2 | chrome.tabs.sendMessage(tab.id, { text: "report_back" }, sendToClipbord); 3 | }); 4 | 5 | function sendToClipbord(myString) { 6 | var input = document.createElement('textarea'); 7 | document.body.appendChild(input); 8 | 9 | input.value = myString; 10 | input.focus(); 11 | input.select(); 12 | 13 | document.execCommand('Copy'); 14 | input.remove(); 15 | } -------------------------------------------------------------------------------- /content.js: -------------------------------------------------------------------------------- 1 | chrome.runtime.onMessage.addListener(function(msg, sender, sendResponse) { 2 | 3 | var issueNumber = document.getElementById("key-val").textContent; 4 | var issueDescription = document.getElementById("summary-val").textContent; 5 | 6 | sendResponse(issueNumber + " - " + issueDescription); 7 | }); -------------------------------------------------------------------------------- /icon128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxday/jira-issue-easyCopy/d1be2fa00c78588465d0fc56764fc016fc1d0d3d/icon128.png -------------------------------------------------------------------------------- /icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxday/jira-issue-easyCopy/d1be2fa00c78588465d0fc56764fc016fc1d0d3d/icon16.png -------------------------------------------------------------------------------- /icon48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maxday/jira-issue-easyCopy/d1be2fa00c78588465d0fc56764fc016fc1d0d3d/icon48.png -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 2, 3 | "version": "1.0", 4 | "name": "Jira Issue EasyCopy", 5 | "permissions": [ 6 | "activeTab" 7 | ], 8 | "background": { 9 | "scripts": [ 10 | "background.js" 11 | ], 12 | "persistent": false 13 | }, 14 | "browser_action": { 15 | "default_title": "Jira Issue EasyCopy" 16 | }, 17 | "content_scripts": [ 18 | { 19 | "matches": [ 20 | "" 21 | ], 22 | "js": [ 23 | "content.js" 24 | ] 25 | } 26 | ], 27 | "icons": { 28 | "16": "icon16.png", 29 | "48": "icon48.png", 30 | "128": "icon128.png" 31 | } 32 | } --------------------------------------------------------------------------------