Skip to content

Instantly share code, notes, and snippets.

@yannickoo
Created October 23, 2014 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yannickoo/6636c8b9db336263b96a to your computer and use it in GitHub Desktop.
Save yannickoo/6636c8b9db336263b96a to your computer and use it in GitHub Desktop.
Display ticket IDs in Jira's subtask table
(function($){
$('head').append('<style>.bookmarklet-issue-id {color: #fff; background: #3b73af; padding: 1px 2px; border-radius: 5px;}</style>');
$('.subtask-table-container tbody > tr.issuerow').each(function() {
var $this = $(this);
var $id = $this.data('issuekey');
var $firstRow = $this.children('td:first');
$firstRow.after('<td><pre class="bookmarklet-issue-id">' + $id + '</pre></td>');
});
}(jQuery));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment