Created
August 23, 2017 02:10
-
-
Save mrbusche/8c0eb086e33e1d311c8840251af3f82f to your computer and use it in GitHub Desktop.
jira hide specific words from view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//remove anything with the title "words" from jira view | |
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
$('.ghx-inner').each(function() { | |
var str = $(this).text().replace(/ /g, '').toUpperCase(); | |
if (str.indexOf("words") >= 0) { | |
$(this).parent().parent().parent().parent().hide(); | |
} | |
}) | |
$('.ghx-extra-field').each(function() { | |
var str = $(this).text().replace(/ /g, '').toUpperCase(); | |
if (str.indexOf("words") >= 0) { | |
$(this).parent().parent().parent().parent().hide(); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment