Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JQuery autocomplete custom field

Hi all,

I created an automcomplete custom field which takes values directly from Jira database which works well for Jira 7.10. This plugin use jQuery UI Autocomplete 1.8.11 and jQuery UI Position 1.8.11.

I'm trying now to update it for Jira 8.4.0, but I'm not able to get it work.

Looking around I see that in Jira 8 there is the new version of jQuery 2.2.4 and I tried to follow tha Atlassian guidelines, but didn't find a solution.

I also tried to include jQuery JavaScript Library v1.12.4 and jQuery UI - v1.12.1 with the autocomplete modules and the customfield works, but I started to have other pages not loaded correctly because of Javascript errors.

This is a snippet of atlassian-plugin.xml in which I load the JS libraries:

 <!-- Autocomplete JS and CSS-->
<web-resource key="jquery.autocomplete.customfield" name="Script JS about autocomplete managment" >
<resource type="download" name="jquery-ui-custom-autocomplete.css" location="css/jquery-ui-custom-autocomplete.css" />
<resource type="download" name="jquery-custom-autocomplete.js" location="js/jquery-custom-autocomplete.js" />
<resource type="download" name="jquery-ui-custom-autocomplete.js" location="js/jquery-ui-custom-autocomplete.js" />

What is the correct way of doing it? Do I have to use another autocomplete javascript library?

I also take a look at JDVP, but it seems too overcomplicated for my purpouses.

1 answer

I have build a simple version of my plugin to understand how to create a working version of an autocomplete custom field in Jira 8.

You can find it here:

There are two releases by now, one that has a clean working simple text custom field and another one that have the JQuery library to add the autocomplete funcionality, that doesn't work.

It would be great if you can download and try by yourself to help me!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,499 views 22 32
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you