PCF - Checkbox
The Checkbox custom field enables you to select multiple options based on a dynamic data source in the field.
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
Using the PCF - Checkbox custom field
If you go to an issue and edit this field, you will see an image like the following example:
Examples
Using checkbox custom field with SIL Data Source
Getting Project Components
This example gets all components existing in the project "TEST". The components are added as options to the custom field which uses this script as data source.
string projectKey = "TEST";
string[] componentNames = admGetProjectComponents(projectKey);
number[] componentId;
for(string componentName in componentNames){
JComponent componentNames = admGetProjectComponent(projectKey, componentName);
componentId += componentNames.id;
}
return componentId;
Using checkbox custom field with SQL Data Source
To use SQL Data Source, set the JNDI first. You can see details on the SQL Data Source page.
SQL Initial Script
The following example returns all component names:
select cname, id from component;
See More