Hi people,

My new plugin is coming! If your JIRA is a large instance, you probably use & abuse of the Web browser functionality : “search”… for customfields, workflows, workflow schemes, permissions schemes, views, DVCS repos … with this plugin, this functionality is added in the top buttons of each view of the project administration artifacts (with the autocomplete option)… it’s a simple support tool for admins!.

Captura de pantalla 2016-02-29 a la(s) 18.24.22

To set this functionality to your browser, you only need to download Tampermonkey ( I love this plugin!) and set this JS code:


// ==UserScript==
// @name Jirasupport Tools
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://jira.example.com/*
// @grant none
// ==/UserScript==
/* jshint -W097 */
'use strict';

// Your code here...



function customfields() {
var pathname = window.location.pathname;
if (pathname == "/secure/admin/ViewCustomFields.jspa") {

var divs = document.getElementById('custom-fields').getElementsByTagName("tr");
var options_custom = "";
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
options_custom = options_custom +"
<option value='" + para[0].getElementsByTagName("strong")[0].innerText + "' />";
options_custom = options_custom +"
<option value='" + para[0].id.replace('custom-fields-','').replace('-name','') + "' />";
para[0].innerHTML = para[0].innerHTML + "(" + para[0].id.replace('custom-fields-','').replace('-name','') + ")" + "&nbsp;<a href='#'>[TOP]</a>";
}
}

var x = jQuery(".aui-buttons");
var input = jQuery("<input type='text' list='OptionList' name='search_custom_field' autocomplete='on' autocorrect='off' autocapitalize='off' spellcheck='false' id='search_customfield' class='search-entry text'></input>");
var optionlist = jQuery("<datalist id='OptionList'>"+options_custom+"</datalist>");
var btn = jQuery("<button id='search_btn_customfield' class='aui-button'>Search CustomField</button>");
var valor = "";
var alerta = function(){
valor = document.getElementById("search_customfield").value;
search_customfield(valor);
}

input.keydown(function (e){
if(e.keyCode == 13){
valor = document.getElementById("search_customfield").value;
search_customfield(valor);
}
})

btn.click(alerta);
x.append(optionlist);
x.append(input);
x.append(btn);
}
}


function issuetypes() {
var pathname = window.location.pathname;
if (pathname == "/secure/admin/ViewIssueTypes.jspa") {

var divs = document.getElementById('issue-types-table').getElementsByTagName("tr");
var options_custom = "";
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
options_custom = options_custom +"
<option value='" + para[0].getElementsByTagName("strong")[0].innerText + "' />";
para[0].innerHTML = para[0].innerHTML + "&nbsp;<a href='#'>[TOP]</a>";

}
}

var x = jQuery(".aui-buttons");
var input = jQuery("<input type='text' list='OptionList' name='search_issuetype' autocomplete='on' autocorrect='off' autocapitalize='off' spellcheck='false' id='search_issuetype' class='search-entry text'></input>");
var optionlist = jQuery("<datalist id='OptionList'>"+options_custom+"</datalist>");
var btn = jQuery("<button id='search_btn_issuetype' class='aui-button'>Search IssueType</button>");
var valor = "";
var alerta = function(){
valor = document.getElementById("search_issuetype").value;
search_issuetype(valor);
}

input.keydown(function (e){
if(e.keyCode == 13){
valor = document.getElementById("search_issuetype").value;
search_issuetype(valor);
}
})

btn.click(alerta);
x.append(optionlist);
x.append(input);
x.append(btn);
}
}

function issuetypesscheme() {
var pathname = window.location.pathname;
if (pathname == "/secure/admin/ManageIssueTypeSchemes!default.jspa") {

var divs = document.getElementById('issuetypeschemes').getElementsByTagName("tr");
var options_custom = "";
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
options_custom = options_custom +"
<option value='" + para[0].getElementsByTagName("strong")[0].innerText + "' />";
para[0].innerHTML = para[0].innerHTML + "&nbsp;<a href='#'>[TOP]</a>";

}
}

var x = jQuery(".aui-buttons");
var input = jQuery("<input type='text' list='OptionList' name='search_issuetype' autocomplete='on' autocorrect='off' autocapitalize='off' spellcheck='false' id='search_issuetype' class='search-entry text'></input>");
var optionlist = jQuery("<datalist id='OptionList'>"+options_custom+"</datalist>");
var btn = jQuery("<button id='search_btn_issuetype' class='aui-button'>Search IssueType Scheme</button>");
var valor = "";
var alerta = function(){
valor = document.getElementById("search_issuetype").value;
search_issuetype_scheme(valor);
}

input.keydown(function (e){
if(e.keyCode == 13){
valor = document.getElementById("search_issuetype").value;
search_issuetype_scheme(valor);
}
})

btn.click(alerta);
x.append(optionlist);
x.append(input);
x.append(btn);
}
}


function workflow() {
var pathname = window.location.pathname;
if (pathname == "/secure/admin/workflows/ListWorkflows.jspa") {

/*
var divs = document.getElementById('active-workflows-table').getElementsByTagName("tr");
var options_custom = "";
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
options_custom = options_custom +"
<option value='" + para[0].getElementsByTagName("strong")[0].innerText + "' />";
para[0].innerHTML = para[0].innerHTML + "&nbsp;<a href='#'>[TOP]</a>";

}
}
var divs = document.getElementById('inactive-workflows-table').getElementsByTagName("tr");
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
options_custom = options_custom +"
<option value='" + para[0].getElementsByTagName("strong")[0].innerText + "' />";
para[0].innerHTML = para[0].innerHTML + "&nbsp;<a href='#'>[TOP]</a>";

}
} */

var divs = jQuery("div[class='module toggle-wrap collapsed']")
for (var i = 0; i < divs.length; i++) {
divs[i].className = "module toggle-wrap expanded";
}

var divs = jQuery("table[class='aui aui-table-rowhover list-workflow-table']");
var options_custom = "";
for (var i = 0; i < divs.length; i++) {
var para2 = divs[i].getElementsByTagName("tr");
for (var j = 0; j < para2.length; j++) {
var para = para2[j].getElementsByTagName("td");
if ( para[0] ) {
options_custom = options_custom +"
<option value='" + para[0].getElementsByTagName("strong")[0].innerText + "' />";
para[0].innerHTML = para[0].innerHTML + "&nbsp;<a href='#'>[TOP]</a>";

}
}
}

var x = jQuery(".aui-buttons");
var input = jQuery("<input type='text' list='OptionList' name='search_issuetype' autocomplete='on' autocorrect='off' autocapitalize='off' spellcheck='false' id='search_issuetype' class='search-entry text'></input>");
var optionlist = jQuery("<datalist id='OptionList'>"+options_custom+"</datalist>");
var btn = jQuery("<button id='search_btn_issuetype' class='aui-button'>Search Workflow</button>");
var valor = "";
var alerta = function(){
valor = document.getElementById("search_issuetype").value;
search_workflow(valor);
}

input.keydown(function (e){
if(e.keyCode == 13){
valor = document.getElementById("search_issuetype").value;
search_workflow(valor);
}
})

btn.click(alerta);
x.append(optionlist);
x.append(input);
x.append(btn);

document.getElementById('inactive-workflows-module').className = "module toggle-wrap expanded";
}
}

function views() {
var pathname = window.location.pathname;
if (pathname == "/secure/admin/ViewFieldScreens.jspa") {

var divs = document.getElementById('field-screens-table').getElementsByTagName("tr");
var options_custom = "";
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
options_custom = options_custom +"
<option value='" + para[0].getElementsByTagName("strong")[0].innerText + "' />";
para[0].innerHTML = para[0].innerHTML + "&nbsp;<a href='#'>[TOP]</a>";

}
}


var x = jQuery(".aui-buttons");
var input = jQuery("<input type='text' list='OptionList' name='search_issuetype' autocomplete='on' autocorrect='off' autocapitalize='off' spellcheck='false' id='search_issuetype' class='search-entry text'></input>");
var optionlist = jQuery("<datalist id='OptionList'>"+options_custom+"</datalist>");
var btn = jQuery("<button id='search_btn_issuetype' class='aui-button'>Search View</button>");
var valor = "";
var alerta = function(){
valor = document.getElementById("search_issuetype").value;
search_view(valor);
}

input.keydown(function (e){
if(e.keyCode == 13){
valor = document.getElementById("search_issuetype").value;
search_view(valor);
}
})

btn.click(alerta);
x.append(optionlist);
x.append(input);
x.append(btn);


}
}

function viewsscheme() {
var pathname = window.location.pathname;
if (pathname == "/secure/admin/ViewFieldScreenSchemes.jspa") {

var divs = document.getElementById('field-screen-schemes-table').getElementsByTagName("tr");
var options_custom = "";
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
options_custom = options_custom +"
<option value='" + para[0].getElementsByTagName("strong")[0].innerText + "' />";
para[0].innerHTML = para[0].innerHTML + "&nbsp;<a href='#'>[TOP]</a>";

}
}


var x = jQuery(".aui-buttons");
var input = jQuery("<input type='text' list='OptionList' name='search_issuetype' autocomplete='on' autocorrect='off' autocapitalize='off' spellcheck='false' id='search_issuetype' class='search-entry text'></input>");
var optionlist = jQuery("<datalist id='OptionList'>"+options_custom+"</datalist>");
var btn = jQuery("<button id='search_btn_issuetype' class='aui-button'>Search View</button>");
var valor = "";
var alerta = function(){
valor = document.getElementById("search_issuetype").value;
search_view_scheme(valor);
}

input.keydown(function (e){
if(e.keyCode == 13){
valor = document.getElementById("search_issuetype").value;
search_view_scheme(valor);
}
})

btn.click(alerta);
x.append(optionlist);
x.append(input);
x.append(btn);


}
}

function viewsschemeissue() {
var pathname = window.location.pathname;
if (pathname == "/secure/admin/ViewIssueTypeScreenSchemes.jspa") {

var divs = document.getElementById('issue-type-screen-schemes-table').getElementsByTagName("tr");
var options_custom = "";
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
options_custom = options_custom +"
<option value='" + para[0].getElementsByTagName("strong")[0].innerText + "' />";
para[0].innerHTML = para[0].innerHTML + "&nbsp;<a href='#'>[TOP]</a>";

}
}


var x = jQuery(".aui-buttons");
var input = jQuery("<input type='text' list='OptionList' name='search_issuetype' autocomplete='on' autocorrect='off' autocapitalize='off' spellcheck='false' id='search_issuetype' class='search-entry text'></input>");
var optionlist = jQuery("<datalist id='OptionList'>"+options_custom+"</datalist>");
var btn = jQuery("<button id='search_btn_issuetype' class='aui-button'>Search View</button>");
var valor = "";
var alerta = function(){
valor = document.getElementById("search_issuetype").value;
search_view_scheme_issue(valor);
}

input.keydown(function (e){
if(e.keyCode == 13){
valor = document.getElementById("search_issuetype").value;
search_view_scheme_issue(valor);
}
})

btn.click(alerta);
x.append(optionlist);
x.append(input);
x.append(btn);


}
}

function dvcs() {
var pathname = window.location.pathname;
if (pathname == "/secure/admin/ConfigureDvcsOrganizations!default.jspa") {
var divs
var divs2 = document.getElementsByTagName('table')
for (var j = 0; j < divs2.length; j++) {
divs = divs2[j].getElementsByTagName("tbody")[0].getElementsByTagName("tr");
var options_custom = "";
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[1] ) {
//options_custom = options_custom +"
<option value='" + para[1].getElementsByTagName("a")[0].innerText + "' />";
para[1].innerHTML = para[1].innerHTML + "&nbsp;<a href='#'>[TOP]</a>";

}
}
}


var x = jQuery(".dvcs-org-container");
var input = jQuery("<input type='text' list='OptionList' name='search_issuetype' autocomplete='on' autocorrect='off' autocapitalize='off' spellcheck='false' id='search_issuetype' class='search-entry text'></input>");
var optionlist = jQuery("<datalist id='OptionList'>"+options_custom+"</datalist>");
var btn = jQuery("<button id='search_btn_issuetype' class='aui-button'>Search Repo</button>");
var valor = "";
var alerta = function(){
valor = document.getElementById("search_issuetype").value;
search_dvcs(valor);
}

input.keydown(function (e){
if(e.keyCode == 13){
valor = document.getElementById("search_issuetype").value;
search_dvcs(valor);
}
})

btn.click(alerta);
x.append(optionlist);
x.append(input);
x.append(btn);


}
}


function fieldconfig() {
var pathname = window.location.pathname;
if (pathname == "/secure/admin/ViewFieldLayouts.jspa") {

var divs = document.getElementById('field-configurations-table').getElementsByTagName("tr");
var options_custom = "";
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
options_custom = options_custom +"
<option value='" + para[0].getElementsByTagName("a")[0].innerText + "' />";
para[0].innerHTML = para[0].innerHTML + "&nbsp;<a href='#'>[TOP]</a>";

}
}


var x = jQuery(".aui-buttons");
var input = jQuery("<input type='text' list='OptionList' name='search_issuetype' autocomplete='on' autocorrect='off' autocapitalize='off' spellcheck='false' id='search_issuetype' class='search-entry text'></input>");
var optionlist = jQuery("<datalist id='OptionList'>"+options_custom+"</datalist>");
var btn = jQuery("<button id='search_btn_issuetype' class='aui-button'>Search Field Config</button>");
var valor = "";
var alerta = function(){
valor = document.getElementById("search_issuetype").value;
search_field_config(valor);
}

input.keydown(function (e){
if(e.keyCode == 13){
valor = document.getElementById("search_issuetype").value;
search_field_config(valor);
}
})

btn.click(alerta);
x.append(optionlist);
x.append(input);
x.append(btn);


}
}


function fieldconfigscheme() {
var pathname = window.location.pathname;
if (pathname == "/secure/admin/ViewFieldLayoutSchemes.jspa") {

var divs = document.getElementById('field-configuration-schemes-table').getElementsByTagName("tr");
var options_custom = "";
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
options_custom = options_custom +"
<option value='" + para[0].getElementsByTagName("a")[0].innerText + "' />";
para[0].innerHTML = para[0].innerHTML + "&nbsp;<a href='#'>[TOP]</a>";

}
}


var x = jQuery(".aui-buttons");
var input = jQuery("<input type='text' list='OptionList' name='search_issuetype' autocomplete='on' autocorrect='off' autocapitalize='off' spellcheck='false' id='search_issuetype' class='search-entry text'></input>");
var optionlist = jQuery("<datalist id='OptionList'>"+options_custom+"</datalist>");
var btn = jQuery("<button id='search_btn_issuetype' class='aui-button'>Search Field Config Scheme</button>");
var valor = "";
var alerta = function(){
valor = document.getElementById("search_issuetype").value;
search_field_config_scheme(valor);
}

input.keydown(function (e){
if(e.keyCode == 13){
valor = document.getElementById("search_issuetype").value;
search_field_config_scheme(valor);
}
})

btn.click(alerta);
x.append(optionlist);
x.append(input);
x.append(btn);


}
}


function permissionscheme() {
var pathname = window.location.pathname;
if (pathname == "/secure/admin/ViewPermissionSchemes.jspa") {

var divs = document.getElementById('permission_schemes_table').getElementsByTagName("tr");
var options_custom = "";
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
options_custom = options_custom +"
<option value='" + para[0].getElementsByTagName("a")[0].innerText + "' />";
para[0].innerHTML = para[0].innerHTML + "&nbsp;<a href='#'>[TOP]</a>";

}
}


var x = jQuery(".jiraformbody");
var input = jQuery("<input type='text' list='OptionList' name='search_issuetype' autocomplete='on' autocorrect='off' autocapitalize='off' spellcheck='false' id='search_issuetype' class='search-entry text'></input>");
var optionlist = jQuery("<datalist id='OptionList'>"+options_custom+"</datalist>");
var btn = jQuery("<button id='search_btn_issuetype' class='aui-button'>Search Permission</button>");
var valor = "";
var alerta = function(){
valor = document.getElementById("search_issuetype").value;
search_permission_scheme(valor);
}

input.keydown(function (e){
if(e.keyCode == 13){
valor = document.getElementById("search_issuetype").value;
search_permission_scheme(valor);
}
})

btn.click(alerta);
x.append(optionlist);
x.append(input);
x.append(btn);


}
}

function notificationscheme() {
var pathname = window.location.pathname;
if (pathname == "/secure/admin/ViewNotificationSchemes.jspa") {

//var divs = document.getElementById('notification_schemes').getElementsByTagName("tr");
var divs = jQuery("table[id='notification_schemes']");
var options_custom = "";
for (var i = 0; i < divs.length; i++) {
var para2 = divs[i].getElementsByTagName("tr");
for (var j = 0; j < para2.length; j++) {
var para = para2[j].getElementsByTagName("td");
if ( para[0] ) {
options_custom = options_custom +"
<option value='" + para[0].getElementsByTagName("a")[0].innerText + "' />";
para[0].innerHTML = para[0].innerHTML + "&nbsp;<a href='#'>[TOP]</a>";

}
}
}



var x = jQuery(".jiraformbody");
var input = jQuery("<input type='text' list='OptionList' name='search_issuetype' autocomplete='on' autocorrect='off' autocapitalize='off' spellcheck='false' id='search_issuetype' class='search-entry text'></input>");
var optionlist = jQuery("<datalist id='OptionList'>"+options_custom+"</datalist>");
var btn = jQuery("<button id='search_btn_issuetype' class='aui-button'>Search Notification</button>");
var valor = "";
var alerta = function(){
valor = document.getElementById("search_issuetype").value;
search_notification_scheme(valor);
}

input.keydown(function (e){
if(e.keyCode == 13){
valor = document.getElementById("search_issuetype").value;
search_notification_scheme(valor);
}
})

btn.click(alerta);
x.append(optionlist);
x.append(input);
x.append(btn);


}
}



function workflowscheme() {
var pathname = window.location.pathname;
if (pathname == "/secure/admin/ViewWorkflowSchemes.jspa") {
var divs = jQuery("div[class='module toggle-wrap collapsed']")
for (var i = 0; i < divs.length; i++) {
divs[i].className = "module toggle-wrap expanded";
}

//var divs = document.getElementById('WorkflowSchemes').getElementsByTagName("tr");
var divs = jQuery("table[class='aui aui-table-rowhover list-workflow-table']");
var options_custom = "";
for (var i = 0; i < divs.length; i++) {
var para2 = divs[i].getElementsByTagName("tr");
for (var j = 0; j < para2.length; j++) {
var para = para2[j].getElementsByTagName("td");
if ( para[0] ) {
options_custom = options_custom +"
<option value='" + para[0].getElementsByTagName("strong")[0].innerText + "' />";
para[0].innerHTML = para[0].innerHTML + "&nbsp;<a href='#'>[TOP]</a>";

}
}
}


var x = jQuery(".aui-buttons");
var input = jQuery("<input type='text' list='OptionList' name='search_issuetype' autocomplete='on' autocorrect='off' autocapitalize='off' spellcheck='false' id='search_issuetype' class='search-entry text'></input>");
var optionlist = jQuery("<datalist id='OptionList'>"+options_custom+"</datalist>");
var btn = jQuery("<button id='search_btn_issuetype' class='aui-button'>Search Workflow</button>");
var valor = "";
var alerta = function(){
valor = document.getElementById("search_issuetype").value;
search_workflow_scheme(valor);
}

input.keydown(function (e){
if(e.keyCode == 13){
valor = document.getElementById("search_issuetype").value;
search_workflow_scheme(valor);
}
})

btn.click(alerta);
x.append(optionlist);
x.append(input);
x.append(btn);

}
}


var pathname = window.location.pathname;

//Set the functions in each page
if (pathname == "/secure/admin/ViewCustomFields.jspa") {
setTimeout(function() { customfields(); }, 60);
} else if (pathname == "/secure/admin/ViewIssueTypes.jspa") {
setTimeout(function() { issuetypes(); }, 60);
} else if (pathname == "/secure/admin/ManageIssueTypeSchemes!default.jspa") {
setTimeout(function() { issuetypesscheme(); }, 60);
} else if (pathname == "/secure/admin/workflows/ListWorkflows.jspa") {
setTimeout(function() { workflow(); }, 60);
} else if (pathname == "/secure/admin/ViewFieldScreens.jspa") {
setTimeout(function() { views(); }, 60);
} else if (pathname == "/secure/admin/ViewFieldScreenSchemes.jspa") {
setTimeout(function() { viewsscheme(); }, 60);
} else if (pathname == "/secure/admin/ViewIssueTypeScreenSchemes.jspa") {
setTimeout(function() { viewsschemeissue(); }, 60);
} else if (pathname == "/secure/admin/ConfigureDvcsOrganizations!default.jspa") {
setTimeout(function() { dvcs(); }, 60);
} else if (pathname == "/secure/admin/ViewFieldLayouts.jspa") {
setTimeout(function() { fieldconfig(); }, 60);
} else if (pathname == "/secure/admin/ViewFieldLayoutSchemes.jspa") {
setTimeout(function() { fieldconfigscheme(); }, 60);
} else if (pathname == "/secure/admin/ViewPermissionSchemes.jspa") {
setTimeout(function() { permissionscheme(); }, 60);
} else if (pathname == "/secure/admin/ViewNotificationSchemes.jspa") {
setTimeout(function() { notificationscheme(); }, 60);
} else if (pathname == "/secure/admin/ViewWorkflowSchemes.jspa") {
setTimeout(function() { workflowscheme(); }, 60);
}


function search_customfield( valor) {

var name = valor.toLowerCase();

var divs = document.getElementById('custom-fields').getElementsByTagName("tr");
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
var index = para[0].innerText.toLowerCase().indexOf(name);
if (index != -1) {
para[0].scrollIntoView();
break;
}
}
}
}

function search_issuetype( valor) {

var name = valor.toLowerCase();

var divs = document.getElementById('issue-types-table').getElementsByTagName("tr");
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
var index = para[0].innerText.toLowerCase().indexOf(name);
if (index != -1) {
para[0].scrollIntoView();
break;
}
}
}
}

function search_issuetype_scheme( valor) {

var name = valor.toLowerCase();

var divs = document.getElementById('issuetypeschemes').getElementsByTagName("tr");
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
var index = para[0].innerText.toLowerCase().indexOf(name);
if (index != -1) {
para[0].scrollIntoView();
break;
}
}
}
}

function search_workflow( valor) {
/*
var name = valor.toLowerCase();
var find = false;

var divs = document.getElementById('active-workflows-table').getElementsByTagName("tr");
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
var index = para[0].innerText.toLowerCase().indexOf(name);
if (index != -1) {
para[0].scrollIntoView();
find = true;
break;
}
}
}
if (!find) {
divs = document.getElementById('inactive-workflows-table').getElementsByTagName("tr");
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
index = para[0].innerText.toLowerCase().indexOf(name);
if (index != -1) {
para[0].scrollIntoView();
break;
}
}
}
}
*/
var divs = jQuery("div[class='module toggle-wrap collapsed']")
for (var i = 0; i < divs.length; i++) {
divs[i].className = "module toggle-wrap expanded";
}

var name = valor.toLowerCase();
var find = false;

var divs = jQuery("table[class='aui aui-table-rowhover list-workflow-table']");
for (var i = 0; i < divs.length; i++) {
var para2 = divs[i].getElementsByTagName("tr");
for (var j = 0; j < para2.length; j++) {
var para = para2[j].getElementsByTagName("td");
if ( para[0] ) {
var index = para[0].innerText.toLowerCase().indexOf(name);
if (index != -1) {
para[0].scrollIntoView();
break;
}

}
}
}
}

function search_view( valor) {

var name = valor.toLowerCase();
var find = false;

var divs = document.getElementById('field-screens-table').getElementsByTagName("tr");
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
var index = para[0].innerText.toLowerCase().indexOf(name);
if (index != -1) {
para[0].scrollIntoView();
find = true;
break;
}
}
}

}

function search_view_scheme( valor) {

var name = valor.toLowerCase();
var find = false;

var divs = document.getElementById('field-screen-schemes-table').getElementsByTagName("tr");
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
var index = para[0].innerText.toLowerCase().indexOf(name);
if (index != -1) {
para[0].scrollIntoView();
find = true;
break;
}
}
}

}

function search_view_scheme_issue( valor) {

var name = valor.toLowerCase();
var find = false;

var divs = document.getElementById('issue-type-screen-schemes-table').getElementsByTagName("tr");
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
var index = para[0].innerText.toLowerCase().indexOf(name);
if (index != -1) {
para[0].scrollIntoView();
find = true;
break;
}
}
}

}

function search_dvcs( valor) {

var name = valor.toLowerCase();
var find = false;

var divs
var divs2 = document.getElementsByTagName('table')
for (var j = 0; j < divs2.length; j++) {
divs = divs2[j].getElementsByTagName("tbody")[0].getElementsByTagName("tr");
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
var index = para[1].innerText.toLowerCase().indexOf(name);
if (index != -1) {
para[1].scrollIntoView();
find = true;
break;
}
}
}
}
}

function search_field_config( valor) {

var name = valor.toLowerCase();
var find = false;

var divs = document.getElementById('field-configurations-table').getElementsByTagName("tr");
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
var index = para[0].innerText.toLowerCase().indexOf(name);
if (index != -1) {
para[0].scrollIntoView();
find = true;
break;
}
}
}

}

function search_field_config_scheme( valor) {

var name = valor.toLowerCase();
var find = false;

var divs = document.getElementById('field-configuration-schemes-table').getElementsByTagName("tr");
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
var index = para[0].innerText.toLowerCase().indexOf(name);
if (index != -1) {
para[0].scrollIntoView();
find = true;
break;
}
}
}

}

function search_permission_scheme( valor) {

var name = valor.toLowerCase();
var find = false;

var divs = document.getElementById('permission_schemes_table').getElementsByTagName("tr");
for (var i = 0; i < divs.length; i++) {
var para = divs[i].getElementsByTagName("td");
if ( para[0] ) {
var index = para[0].innerText.toLowerCase().indexOf(name);
if (index != -1) {
para[0].scrollIntoView();
find = true;
break;
}
}
}

}

function search_notification_scheme( valor) {

var name = valor.toLowerCase();
var find = false;

var divs = jQuery("table[id='notification_schemes']");
var options_custom = "";
for (var i = 0; i < divs.length; i++) {
var para2 = divs[i].getElementsByTagName("tr");
for (var j = 0; j < para2.length; j++) {
var para = para2[j].getElementsByTagName("td");
if ( para[0] ) {
var index = para[0].innerText.toLowerCase().indexOf(name);
if (index != -1) {
para[0].scrollIntoView();
find = true;
break;
}
}
}
}
}

function search_workflow_scheme( valor) {

var divs = jQuery("div[class='module toggle-wrap collapsed']")
for (var i = 0; i < divs.length; i++) {
divs[i].className = "module toggle-wrap expanded";
}

var name = valor.toLowerCase();
var find = false;

var divs = jQuery("table[class='aui aui-table-rowhover list-workflow-table']");
for (var i = 0; i < divs.length; i++) {
var para2 = divs[i].getElementsByTagName("tr");
for (var j = 0; j < para2.length; j++) {
var para = para2[j].getElementsByTagName("td");
if ( para[0] ) {
var index = para[0].innerText.toLowerCase().indexOf(name);
if (index != -1) {
para[0].scrollIntoView();
break;
}

}
}
}

}

Posted by:.

One thought on “Jirasupport Toolkit for Awesome JIRA Admins

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s