Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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