PCF - Multi Select

Contents

Multi Select custom field enables you to select multiple options in the 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 - Multi Select custom field

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

multi select

Save the changes and the selected values will appear on the issue screen: 

multi select result

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

multi select example

Examples

Using Multi Select custom field with SIL Data Source

Getting Groups

This example gets the groups like in the above examples.

return userGroups(currentUsername());

Using Multi Select 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 a list of group names.

select group_name from cwd_group;

See also