Versions Compared

Key

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


Info
titleRequired apps
  • Power Custom Fields PRO™ or
  • Power Custom Fields

You can use Power Custom Fields for huge data sets. Still, showing all the options, without being able to select them by name can be a torture. So, you can limit the value count and filter them by name selecting the ones which contain those characters.

...

This example shows you how to limit the value count and filter options by name. You can select the options that contain the specific characters you are looking for when the value count is limited and when you filter options by name.

Note

You must set the Filtering Strategy (from Autocomplete settings) to Datasource

...

to use the argv["query"] routine.

See the following example for

...

more information on using the argv[“query”]:

Widget Connector
overlayyoutube
_templatecom/atlassian/confluence/extra/widgetconnector/templates/youtube.vm
width400px
urlhttps://www.youtube.com/watch?v=MJk5raHkEjo&feature=youtu.be
height

...

300px

Script details

The video used the following script to limit the value count and filter options by name:

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;

See

...

More

Child pages (Children Display)
pageExamples for PCF