Versions Compared

Key

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


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.

Let's consider the next example: we say you want to link the current issue to an another issue selectedthat you select. Using KCF PRO Power Custom Fields PRO you can do this very simpleeasily

Considering we have a KCF PCF - Single select Select configured with one SIL Data Source, one Selection script, minimum characters for autocomplete set to 5 and the maximum results number set to 50. We want to select an issue using its key or summary. The  You can see the custom field looks like thisin the picture belowImage Removed
 The SIL data source used to populate the custom field above:

Image Added

For this example we used the following SIL data source. 

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

The select script used is:

Code Block
OptionKPOption[] selectedOption = customfield_12209;
linkIssue(key, selectedOption[0].value, "Relates");

It creates a link of type the "Relates" type between the current issue and the selected issue.

Image Removed

 

...

Image Added

 

Note

Note that you'll have to use the name of the link issue, as you find it on the Issue linking page (in our case, "Relates" and not "relates to").

In order to do this, you can use argv["query"] only if you set the Filtering Strategy (from Autocomplete settings) to Datasource.

See also