Versions Compared

Key

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

...

Content

Table of Contents
excludeSee also

Configuring PCF - Single Select custom field


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

...

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

...

Using PCF - Single Select custom field

Examples

Using Single Select custom field with SIL Data Source

...

Getting Project Versions

...

The example gets project versions.

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

Note

First of all, in order to use SQL Data Source, you have to set the JNDI as described here.

SQL Initial Script

This example returns the versions names.

Code Block
select vname, id from projectversion;

This example returns the versions names.

 

...


See also