Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,117
Community Members
 
Community Events
165
Community Groups

Script to Alphabetize Issue Links

As a Jira/Confluence automation initiative, I created a script to alphabetize/sort issue links.

I use it with Tampermonkey and Google Chrome.

It’s a feature I’ve wanted for a while to make it easier to find stories/defects in a release/update. It will click the “Show More” link for you, if you haven’t already clicked it.  It also respects the sub-divisions in the Issue Links.

**I’m using ALT+K as the Keyboard Shortcut to run it, but the shortcut can be anything to trigger, even a button drawn on the page.

Here is the code:

// ==UserScript==
// @Name TinySort for IssueTracker
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Sort Issue Links on IssueTracker Pages
// @author Brock
// @match https://*
// @Grant none
// @require https://cdnjs.cloudflare.com/ajax/libs/tinysort/3.2.5/tinysort.min.js
// ==/UserScript==

(function() {
'use strict';

$(document).keydown(function(e) {
if (e.altKey && e.which == 75) { // Keycode: alt + k
var i = 1;
$("#show-more-links-link").trigger("click");
$( "dl.links-list" ).each(function( index ) {
if ($("dl.links-list:nth-of-type("+i+") > [id^=internal]").length == 0) {
return;
}
tinysort("dl.links-list:nth-of-type("+i+") > [id^=internal]");
i = i + 1;
});
}
});
})();

0 comments

Comment

Log in or Sign up to comment
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you