Content
Single Select 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 Select custom field
- Log into your Jira as Admin.
- Go to Administration > Issues > Custom Fields page.
- Click Add custom field and select PCF - Single Select.
- Configure this custom field as described on the Configuring Power Custom Fields PRO page.
Using PCF - Single Select 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 Select custom field with SIL Data Source
Getting Project Versions
The example gets project versions.
string projectKey = "TEST"; string[] versionNames = admGetProjectVersions(projectKey); number[] versionId; for(string versionName in versionNames){ JVersion version = admGetProjectVersion(projectKey, versionName); versionId += version.id; } return versionId;
This example is used to generate the pictures above.
Using Single Select 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 Initial Script
This example returns the versions names.
select vname, id from projectversion;