Strange JavaScript problem in create screen

TechnicalS February 10, 2014

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

3 answers

0 votes
Nitram
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2014

This may help you I think,

please check this answer

https://answers.atlassian.com/questions/47843/strange-javascript-problem-in-create-screen

Hope this helps you.

0 votes
TechnicalS February 19, 2014

We still need this to be done

0 votes
Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2014

Hi,

I think that is the same problem in JIRA 5.2.8. To resolve this problem we have disabled the create issue popup.

To disable the create issue popup add this script in the banner.

&lt;script type="text/javascript"&gt;
//To disable the  create issue popup
AJS.$("#create_link").removeClass("create-issue");
&lt;/script&gt;

Look, this link it can help you

How to disable Create Issue popup

TechnicalS February 12, 2014

Hi,

thanks very mich for reply. But we do not want to disable the create issue popup.

Kind regards

Toni

Suggest an answer

Log in or Sign up to answer