Skip to end of banner
Go to start of banner

PCF-PRO - Single Autocomplete

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 27 Next »

Content

Configuring PCF - Single Autocomplete custom field


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

In order to see how you can configure all the options above, check this: Configuring Power Custom Fields PRO

This custom field can be used for many types of options: 

      

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

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

Using PCF - Single Autocomplete custom field

Examples

Using Single Autocomplete custom field with SIL Data Source

Getting Issues

This example gets all created issues with the summary matching the search.

string [] issues = selectIssues("created < now()");
string [] res;
for (string iss in issues) {
    if (contains(iss.summary, argv["query"])) {
    	res = addElementIfNotExist(res, iss);
    }
}
return res;


 

Using Single Autocomplete custom field with SQL Data Source

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

SQL Autocomplete Script

This example returns all the issue keys.

select  p.project_key ||'-'||i.issuenum as "KEY"
from jiraissue i
inner join project_key p on p.project_id = i.project


 

See also


 

  • No labels