Content
Single Autocomplete custom field enables you to select multiple options in the field based on dynamic data source.
This custom field can be used for the following types of options:
- String (default)
- Component Picker
- Group Picker
- Issue Picker
- Project Picker
- User Picker
- Version Picker
Configuring PCF - Single Autocomplete custom field
- Log into your Jira as Admin.
- Go to Administration > Issues > Custom Fields page.
- Click Add custom field and select PCF - Single Autocomplete.
- Configure this custom field as described on the Configuring Power Custom Fields PRO page.
Using PCF - Single Autocomplete custom field
If you go to an issue and edit this field, you will see an image like the following example:
Save the changes and the selected value will appear on the issue screen:
Examples
Using Single Autocomplete custom field with SIL Data Source
Getting Issues
This example gets all created issues with the summary matching the search.
string [] issues = selectIssues("created < now()"); string [] res; for (string iss in issues) { if (contains(iss.summary, argv["query"])) { res = addElementIfNotExist(res, iss); } } return res;
Using Single Autocomplete custom field with SQL Data Source
First of all, in order to use SQL Data Source, you have to set the JNDI as described here.
SQL Autocomplete Script
This example returns all the issue keys.
select p.project_key ||'-'||i.issuenum as "KEY" from jiraissue i inner join project_key p on p.project_id = i.project
See also