Versions Compared

Key

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

ContentContents

Table of Contents
excludeSee also

...

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

Using PCF - Single Select custom field

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

Image Modified

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

Image Modified

Examples

Using Single Select custom field with SIL Data Source

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.

...