Creating Help for a Custom Field - Can't get more than one to work

So I am following the instructions put here https://confluence.atlassian.com/jira064/creating-help-for-a-custom-field-720412166.html for adding in a help area for our custom fields.  I have 6 fields that I need to add help for.  I was able to change the text on the first one and it worked perfectly.  Now when I try and do the others, every time you click on the help icon, it only opens up the first ones hidden text.  

 

I have tried to change the text after document.getElementById and div id= to make them unique, but that just results in the help icon not opening.  Has anyone had issues like this in the past and what was done to resolve?  I appreciate any and all help

3 answers

0 votes
Steven Behnke Community Champion Oct 14, 2016

Can you show us the code you're using?

 Using the code below:

Help
<script type="text/javascript">
   function showHelp() {
         var listenersDiv = document.getElementById("qaFieldHelp");
         if (listenersDiv.style.display == 'none') {
           listenersDiv.style.display = '';
         } else {
           listenersDiv.style.display='none';
         }
   }
 </script> <a href="#"  onclick="showHelp(); return false;"><img src="/images/icons/ico_help.png"/></a>
 <div id="qaFieldHelp" style="display:none">
DETECTION:      Assuming the failure has taken place - this is the probability that it will be detected before it reaches the customer. (for Design FMEA - this may be production.) <table width="100%" border="1">   <tr>     <td><b>RANK</b></td>     <td><b>CRITERIA</b></td>     <td><b>PROBABILITY</b></td>   </tr>   <tr>     <td>1</td>     <td>Very high probability</td>     <td>86 - 100%</td>   </tr>   <tr>     <td>2</td>     <td>Higher probability</td>     <td>77 - 85%</td>   </tr>   <tr>     <td>3</td>     <td>High probability</td>     <td>66 - 76%</td>   </tr>   <tr>     <td>4</td>     <td>High to Moderate probability</td>     <td>56 -65%</td>   </tr>   <tr>     <td>5</td>     <td>Moderate to high probability</td>     <td>46 - 55%</td>   </tr>   <tr>     <td>6</td>     <td>Moderate probability</td>     <td>36 - 45%</td>   </tr>   <tr>     <td>7</td>     <td>Moderate to Low probability</td>     <td>26 - 35%</td>   </tr>   <tr>     <td>8</td>     <td>Low to Moderate probability</td>     <td>16 - 25 %</td>   </tr>   <tr>     <td>9</td>     <td>Low probability</td>     <td>6 - 15%</td>   </tr>   <tr>     <td>10</td>     <td>Remote probability</td>     <td>1 - 5%</td>   </tr> </table> </div>

Have you solved it? I have the same problem.

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,145 views 13 19
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