PCF - Radio Buttons

Contents

Radio Buttons custom field enables you to select an option in a radio button field based on dynamic data source. 

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 PCF - Radio Buttons custom field

If you go to an issue and edit this field, you will see an image like the following example: 

radio buttons

Save the changes and the selected value should appear on the issue screen: 

radio buttons result

If the option type you selected is "Default", the picture above will look like the following example: 

radio buttons example

Examples

Using Radio Buttons custom field with SIL Data Source

Getting Projects

For the images on this page we used the following script.

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

Using Radio Buttons custom field with SQL Data Source

To use SQL Data Source, set the JNDI first. You can see details on the Data Source Configuration page.

SQL Initial Script

This example returns the project keys from the "project" table.

select pkey from project;

See also