Jira Help icon besides a custom field!

Hi

Have added the following script to a custom field (ECU), in order to show the help icon and when pressed pop up a text. In this case a test text!

The help icon ico_help.png shows up underneath the field rather than between field header text and field.

 

helpikon jira.png

 

<a data-aui-trigger href="#" aria-controls="ecu-inline">
<img src="/images/icons/ico_help.png"/>
</a>

<style>
aui-inline-dialog{ max-width: 600px; }
</style>

<aui-inline-dialog id="ecu-inline" alignment="bottom left">
Test for the custom field ECU
</aui-inline-dialog>

 

Any solutions would be much appreciated!

/Daniel

2 answers

1 accepted

Hi

The icons to the right is provided by the Add-on Insight.

But I solved it by changing the script now and it looks like this.

<script type="text/javascript">
AJS.$("#customfield_11013").parent().parent().parent().children('label').append('<a data-aui-trigger href="#" aria-controls="primary-indicator-inline"> <img src="/images/icons/ico_help.png"/> </a>')
</script><style>
aui-inline-dialog{  max-width: 600px; }
</style><aui-inline-dialog id="primary-indicator-inline" alignment="bottom left">
    Text to be shown when clicking the question mark icon
</aui-inline-dialog>

 

field configuration.png

Cool, thanks for posting your solution here!

0 votes

Hi Daniel,

I don't see any clear problems with your script/code here.  However I don't recognize the two icons to the right of these fields.   I am curious to learn if these are being provided by some plugin to Jira and if so what is the name of that plugin.

What I would try to do would be to click and highlight the text from the letters ECU, down past the help question mark to highlight this section, then if you right click on the selected text, you will notice that browsers like Firefox or Chrome will provide an option to "Inspect".  Choose this.  This will bring up the actual HTML code in use here.   It might help to see if there are any <br/> or <p> tags or possible something else here that might be forcing a linebreak on that page.  

It might be Jira doing this, but it could also be caused by a plugin to Jira that might be adding some kind of markup here to the HTML code.   It might not be something we can change, but if we can see this section of information we might be then able to better understand what is causing this behavior.

Andy

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 ...

2,849 views 12 18
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