/
PCF - Radio Buttons

PCF - Radio Buttons

The PCF - Radio Buttons custom field lets you select a radio button option based on a dynamic data source. 

This custom field uses standard configuration settings.

How the field displays

This is an example of how the PCF - Radio Buttons custom field (with option type Issue Picker) displays on the edit issue screen: 

PCF - Radio Buttons custom field on the edit issue screen

When you update the issue, the new value appears on the view issue screen: 

PCF - Radio Buttons custom field on the view issue screen

Contents:

See also:


Examples

Example

Sample script

Sample display output

Example

Sample script

Sample display output

Using PCF - Radio Buttons with SIL data source

This script retrieves all available project keys and adds them as options to the custom field.

string [] projects = allProjects(); return projects;

 

"DEMO (Demo Project)"
"TEST (Test Project)"
"PROD (Production Project)"

Using PCF - Radio Buttons with SQL data source

This query retrieves all project keys from the database. 

Before using SQL data source, ensure you've configured the JNDI settings as detailed in the SQL data source documentation.

select pkey from project;

 

"DEMO (Demo Project)"
"TEST (Test Project)"
"PROD (Production Project)"

Related content