Hello Support,
on a create issue screen a javaScript is not loading when we change issue type. This following script is added to the field "addiotnal hardware information" for the issue type "generic services":
<script type="text/javascript"> // <![CDATA[
env = document.getElementById('customfield_11400:1');
if (env) {
target = document.getElementById('customfield_11403').parentNode;
target2 = document.getElementById('customfield_11402').parentNode;
if (env.value == 11211) target.style.display='none' && target2.style.display='none';
env.onchange=function() {
if (this.value != 11211)
{
target.style.display = '';
target2.style.display = 'none';
target.value="enter message here";
}
else
{
target.style.display='none';
target2.style.display='';
}
}
}
// ]]></script>
The default issue type when we want to create an issue is "service request" and has a different field configuration. When we change the issue type to "generic services" the javascript does not work. I try to put the script in all field configurations but it still not works. We found several other pages where this problem is the same but the version of our jira is 6.0.8. Can you help us? Best regards Toni