Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use JS autocomplete in Jira 8?

Johannes Heger (CD)
Contributor
May 9, 2019

Hello,

I used jQuery autocomplete in Jira 7 like this:

$('#customfield_12345').autocomplete(...);

with local data (no ajax).

In my atlassian-plugin.xml I didn't include anything special for this.

Unfortunately, in Jira 8.1 I get

Uncaught TypeError: $(...).autocomplete is not a function

I have tried a lot including stuff in atlassian-plugin.xml like (each separate)

<dependency>jira.webresources:autocomplete</dependency>
<dependency>jira.webresources:jquery-ui</dependency>
<dependency>com.atlassian.jira.gadgets:autocomplete</dependency>
<dependency>com.atlassian.auiplugin:jquery-ui-other</dependency>

 but without success.

How to get autocomplete running in Jira 8?

Thanks a lot,

Johannes

3 answers

0 votes
Johannes Heger (CD)
Contributor
June 13, 2019
0 votes
Johannes Heger (CD)
Contributor
May 31, 2019

Answering the question by myself:

I needed an JS autocompleter for several self-developed add-ons for my employer as well as to keep alive Wim's great Jira Database Values Plugin JDVP. In the end I made this:

  1. Evaluated some JS autocomplete-libs, and decided to take https://github.com/Pixabay/jQuery-autoComplete.
  2. Because I needed some extra functionality all the evaluated autocomplete-libs didn't provide, I made a fork of that lib and modified it to my needs: https://github.com/comdirect/jQuery-autoComplete/tree/master-cd.
  3. I created a new Jira add-on jira-cd-jsautocomplete, and put the files of my modified fork in there. You'll find the code and bins here: https://bitbucket.org/comdirect-bank/jira-cd-jsautocomplete/src/master. This add-on provides the JS autocomplete on all Jira pages.
  4. I modified the calls to the JS autocomplete of my add-ons and the JDVP to the API of my fork. This means: JDVP now depends on jira-cd-jsautocomplete.
  5. You'll find the JDVP code and bins here in my fork: https://bitbucket.org/comdirect-bank/jdvp/src/master/.
  6. Of course no warranty and no support for all that stuff.
  7. But any feedback appreciated.

Wim, thanks again for JDVP!

 

Best regards, Johannes

https://marketplace.atlassian.com/search?query=johannes

Wim Deblauwe
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2019

Hi Johannes,

 

Glad you like the plugin. I am currently updating my version of the plugin with that autocomplete you selected. I will incorporate it inside my plugin itself to avoid having to install 2 plugins. I am really grateful for your updates, they really help me a lot!

 

regards,

 

Wim

Like • Johannes Heger (CD) likes this
0 votes
Wim Deblauwe
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 25, 2019

Watching this thread as I have the same issue.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, aafp, jira migration, marketing collaboration, end siloed work, streamline workflows, kerrie gottschalk, jira cloud admins, unified marketing, process visibility, team efficiency, cross-team collaboration

How Kerrie Gottschalk unified AAFP’s marketing team with Jira

At the American Academy of Family Physicians, siloed marketing teams faced delays and duplicate work. Kerrie Gottschalk shook things up by moving the department to Jira, streamlining processes, boosting visibility, and sparking stronger collaboration.

Read the story
AUG Leaders

Atlassian Community Events