Let's say you want to link the current issue to another issue that you select. Using Power Custom Fieldsyou can do this easily.
Considering we have a PCF - Multiple Autocomplete configured with one SIL Data Source script file, 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. You can see the custom field in the picture below:
For this example we used the following SIL data source.
string [] issues = selectIssues("created < now()");
string [] res;
for (string iss in issues) {
if (contains(iss.summary, argv["query"])) {
res = addElementIfNotExist(res, iss);
}
}
return res;