Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Web Resource related to scriptrunner

Eric Cheng February 2, 2019

Hi,

I had added javascript as a new resource (via scriptrunner) which applied to Jira Service Desk with below js code:

window.onload = function() {
var inputTags = document.getElementsByTagName("input");
var searchText = "What do you need help with?";

for (var i = 0; i < inputTags.length; i++) {
if (inputTags[i].placeholder == searchText) {
inputTags[i].placeholder = "What do you need help with? (e.g. Notebook problem)";
break;
}
}
}

However, sometimes work and sometimes failure 

Workable:

work.png

Original:

original.png

Any idea that I can ensure the workable search box was shown after fully-loaded of service desk portal?

Regards,

Eric Cheng

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events