Versions Compared

Key

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

Let's say we want to link the current issue to an issue selected. Using Power Custom Fields PRO you can do this very simple. 

Considering we have a PCF - Single 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 below


 The SIL data source used to populate the custom field above: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;

...

Note

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

See also