PCF - Checkbox
The Checkbox custom field lets you select multiple options based on a dynamic data source in the field.
This custom field uses standard configuration settings.
For information about supported option types, see Supported option types by custom field type.
For step-by-step setup guidelines, see Add and configure a new Power custom field.
How the field displays
This is an example of how the PCF - Checkbox custom field displays on the edit issue and view issue screens:
Examples
Example | Sample script | Sample display output |
---|---|---|
Using PCF - Checkbox with SIL data source | This script retrieves all components from the "TEST" project and adds them as options to a custom field that uses this script as its 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;
| "Backend Component (1001)" |
Using PCF - Checkbox with SQL data source | This query retrieves all component names from the database. Before using SQL data source, ensure you've configured the JNDI settings as detailed in the SQL data source documentation. select cname, id from component;
| "Backend Component (1001)" |