I noticed this:
but the solution doesn't seem to work on the version we have.
This solution (https://confluence.atlassian.com/jirakb/how-to-enable-autocomplete-renderer-for-multi-select-custom-field-in-jira-754978239.html) only works if the option "Enable HTML in custom field descriptions and list item values" in "General Configuration" settings is turned ON. It is OFF by default in the latest versions of JIRA.
Hello Jennifer,
The Auto-Complete feature can be achieved by using some JavaScript syntax on your issues fields.
For a Multi-Select Custom field, you can check the explanation of Benji below:
- Adding Auto-Complete to a Select list
Basically, these would be the steps:
1) Create a custom field that uses a multi-select list
2) Paste the following code in the description field of your custom field:
<script type="text/javascript"> (function($) { // "customfield_10400" is the number of the custom // multiselect field you want to change as e.g. // seen at the end of the "configure" page url of // the field you want to change this way AJS.$("#customfield_10400 option[value='-1']").remove(); //Removes the default value "None" function convertMulti(id){ if (AJS.$('#'+id+"-textarea").length == 0){ new AJS.MultiSelect({ element: $("#"+id), itemAttrDisplayed: "label", errorMessage: AJS.params.multiselectComponentsError }); } } AJS.toInit(function(){ convertMulti("customfield_10400"); }) JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function (e, context) { AJS.$("#customfield_10400 option[value='-1']").remove(); convertMulti("customfield_10400"); }); })(AJS.$); </script>
Let me know if it works for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How can I apply this solution to Cloud?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, any ideas why inline editing is not working for such custom field adjusted to autocomplete with a script?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.