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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,323 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot