You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 12 Next »
The Single Select custom field enables you to select an option in the select list field that is based on a SIL script.
This custom field can be used for the following options:
String (default)
Component Picker
Group Picker
Issue Picker
Project Picker
User Picker
Version Picker
If edit this field for an issue, you will see an image similar to the following example (when the Option type is Component Picker):
Save the changes and the selected value will appear:
The example gets project versions like in the image above.
string projectKey = "TEST"; string[] versionNames = admGetProjectVersions(projectKey); number[] versionId; for(string versionName in versionNames){ JVersion version = admGetProjectVersion(projectKey, versionName); versionId += version.id; } return versionId;
To use SQL Data Source, set the JNDI first. You can see details on the SQL Data Source page.
The following example returns the versions names:
select vname, id from projectversion;
See More