Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


How to configure

Go to the Administration page, choose Custom Fields link and add an PCF - Single Select.

Image Removed

...

Warning
titlePower Custom Fields PRO™ is becoming Power Custom Fields™


Power Custom Fields PRO™ is being upgraded to Power Custom Fields™. We are removing Power Custom Fields PRO™ from the market to focus resources on the combined app, Power Custom Fields™ which has all the features of PRO™ and more. Existing Power Custom Fields PRO™ users can get 65% off their new Power Custom Fields™ license by following the steps here.


Contents

Table of Contents
excludeSee also

Single Select custom field enables you to select an option in the select list field based on a SIL script

This custom field can be used for many the following types of options:       Image Removed 

  • String (default)
  • Component Picker
  • Group Picker
  • Issue Picker
  • Project Picker
  • User Picker
  • Version Picker

Adding PCF - Single Select custom field

  1. Log into your Jira as Admin.
  2. Go to Administration > Issues > Custom Fields page.
  3. Click Add custom field and select PCF - Single Select.

After you add this field, you need to configure it as described on the Configuring Power Custom Fields PRO™ page.

Using PCF - Single Select custom field

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

Image Modified

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

Image Modified

...

Examples

Using Single Select custom field with SIL Data Source

 Get Getting Project Versions 

The example gets project versions like in the image above.

Code Block
string projectKey = "TEST";
string[] versionNames = admGetProjectVersions(projectKey);
number[] versionId;
for(string versionName in versionNames){
    JVersion version = admGetProjectVersion(projectKey, versionName); 
    versionId += version.id;
}
return versionId;

This example is used to generate the pictures above.

 

...

Using Single 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 the versions names.

Code Block
select vname, id from projectversion;

This example returns the versions names.

 

...

See also