Strange JavaScript problem in create screen

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

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

Hi,

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

Kind regards

Toni

We still need this to be done

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

23,199 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you