Skip to content

Instantly share code, notes, and snippets.

@benhubert
Last active March 31, 2020 12:17
Show Gist options
  • Save benhubert/184818ebf71e96912ca24fdb3ced14f6 to your computer and use it in GitHub Desktop.
Save benhubert/184818ebf71e96912ca24fdb3ced14f6 to your computer and use it in GitHub Desktop.
Removes detail view from Jira's Rapid Board.
// ==UserScript==
// @name Disable detail view in Jira Rapid Board
// @namespace https://tampermonkey.benjaminhubert.at/
// @version 1.7
// @description Removes the detail view from Jira's Rapid Board which is an annoying feature in my eyes.
// @author Benjamin Hubert, Lukas Schneider, Florian Mautendorfer
// @match https://*/secure/RapidBoard.jspa*
// @grant none
// @require http://code.jquery.com/jquery-3.3.1.min.js
// ==/UserScript==
$(document).ready(function() {
if (window.location.href.indexOf("selectedIssue=") != -1){
window.location.href= window.location.href.replace(/&selectedIssue=.*-[0-9]+/,"")
}
setTimeout(function() {
'use strict';
$("#ghx-detail-view").remove();
$(".ghx-backlog").on("click", ".js-key-link", function(event) {
window.location.href = $(event.target).attr("href");
});
$(".ghx-issue").on("click", ".js-key-link", function(event) {
window.location.href = $(event.target).attr("href");
});
}, 1000);
});
$("div#ghx-errors").remove();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment