How to configure
Go to the Administration page, choose Custom Fields link and add an KCF - Single Autocomplete.
In order to see how you can configure all the options above, check this: Configuration
This custom field can be used for many types of options:
If you go to an issue and try to edit this field, you will see an image like this:
Save the changes and the selected value should appear on the issue screen:
Example for SIL Data Source
Get Issues
string [] issues = selectIssues("created < now()"); string [] res; for (string iss in issues) { if (contains(iss.summary, argv["query"])) { res = addElementIfNotExist(res, iss); } } return res;
This example is used to generate the pictures above. It gets all the created issues with the summary matching the search.
Example for SQL Data Source
Note : Set the JNDI as described here .
SQL Autocomplete Script
select pname from issuetype;
This example returns the name of issue type.