How to configure
Go to the Administration page, choose Custom Fields link and add an KCF - Single Select.
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 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.
Example for SQL Data Source
Note: Set the JNDI as described here .
SQL Initial Script
select vname, id from projectversion;
This example returns the versions names.