Greasy Fork is available in English.
This script allows easy copying of task key and summary from JIRA 6.x to Clipboard
当前为
// ==UserScript== // @name Jira Summary to Clipboard // @namespace sremy // @version 1.0 // @description This script allows easy copying of task key and summary from JIRA 6.x to Clipboard // @author Sébastien REMY // @match https://jira.atlassian.com/browse/* // @match http://localhost:8080/browse/* // @require https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js // @require https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js // @require https://cdn.jsdelivr.net/npm/[email protected]/notify.min.js // ==/UserScript== var clipboard = new ClipboardJS('#clipboardBtn', { text: function(trigger) { return $('#key-val').text() + ' ' + $('#summary-val').text(); } }); clipboard.on('success', function(e) { $.notify("Copied to clipboard. " + e.text, "info"); }); clipboard.on('error', function(e) { $.notify("Failed to copy", "error"); }); (function() { 'use strict'; if(!$('#clipboardBtn').length) { $('.toolbar-split-left').append("<button id='clipboardBtn' class='aui-button aui-style'><img style='display: block;' src='https://clipboardjs.com/assets/images/clippy.svg' width='15' alt='Copy key and title to clipboard'></button>"); } })();