How to configure
Go to the Administration page, choose Custom Fields link and add an KCF PCF - Single Select.
In order to see how you can configure all the options above, check this: ConfigurationConfiguring Power Custom Fields PRO
This custom field can be used for many types of options:
...
Save the changes and the selected value should appear on the issue screen:
Example for SIL Data Source
Get Project Versions
Code Block |
---|
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 |
---|
First of all, in order to use SQL Data Source, you have to set the JNDI as described here. |
...
This example returns the versions names.