Hi all,
I'm making a jira plugin and I need to implement the autocomplete renderer (the same as the one of components and versions on a jira project) for my own custom field but I can't find any documentation about it in the jira development doc...Is that possible? How can I do that?
Thanks for helping ;)
Community moderators have prevented the ability to post new answers.
Hi Etienne,
I finally used the following autocomplete jquery plugin => http://www.devbridge.com/projects/autocomplete/jquery/#download
Regards
Hi Brice,
I tested the autocomplete jquery plugin and it works perfectly in local, but I have difficulties when I want to use it on my customfield :
I think the ressources are not correctly loaded, I trie to include in the atlassian-plugin.xml
<web-resource key="myResource" name="myResource" >
<resource type="download" name="jquery-1.3.2.min.js" location="jquery/jquery-1.3.2.min.js"/>
<resource type="download" name="jquery.autocomplete.js" location="jquery/jquery.autocomplete.js"/>
<resource type="download" name="shadow.png" location="jquery/shadow.png"/>
<resource type="download" name="styles.css" location="jquery/styles.css"/>
<resource type="download" name="autocomplete.ashx" location="jquery/autocomplete.ashx"/>
<resource type="download" name="haha.js" location="jquery/haha.js"/>
<context>atl.general</context>
</web-resource>
or in the vm file
<scripttype="text/javascript"src="jquery.js"></script>
<scripttype="text/javascript"src="jquery.autocomplete.js"></script>
but without success.
Can you tell me how you include the ressources please?
regards, Etienne
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Etienne, your declaration seems to be well declared.
Here is my declaration :
<!-- Autocompletion --> <web-resource key="autocomplete.sqlfeed" name="Script JS about popup managment" > <resource type="download" name="autocomplete-sqlfeed.js" location="includes/js/autocomplete.js" /> <resource type="download" name="autocomplete-sqlfeed.css" location="includes/css/autocomplete.css" /> <resource type="download" name="autocomplete-sqlfeed-handler.js" location="includes/js/autocompleteHandler.js" /> <resource type="download" name="images/" location="images/"/> <context>jira.general</context> <context>jira.admin</context> </web-resource>
Usually, you don't have to import your js ressource in vm resource.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your quick answer, I will explore that solution
Thanks again
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're welcome!
Good luck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you find something, can you share it please?
I have the same issue than you.
Tahnks and goold luck
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nobody has a tip?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.