Skip to content

Instantly share code, notes, and snippets.

@mrbusche
Created August 23, 2017 02:10
Show Gist options
  • Save mrbusche/8c0eb086e33e1d311c8840251af3f82f to your computer and use it in GitHub Desktop.
Save mrbusche/8c0eb086e33e1d311c8840251af3f82f to your computer and use it in GitHub Desktop.
jira hide specific words from view
//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