/
PCF - Checkbox

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.

How the field displays

This is an example of how the PCF - Checkbox custom field displays on the edit issue and view issue screens:

PCF - Checkbox on the edit issue screen
PCF - Checkbox on the view issue screen

Contents:

See also:


Examples

Example

Sample script

Sample display output

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)"
"Frontend Component (1002)"
"Database Component (1003)"

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)"
"Frontend Component (1002)"
"Database Component (1003)"

 

Related content