Skip to end of banner
Go to start of banner

Example 8 - Dependent fields and SQL data sources

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 7 Next »

For this example, we will show SQL data sources and dependent fields. We have two custom fields: PCF - Single Autocomplete named Continent and PCF - Multiple Autocomplete named Countries. Countries is populated based on the value of Continent.

We have a "countries" table with two columns: country and continent. Our first field will select the continents and the second one will contain the countries on that continent.

To use the screen values for a field in the data source, add it as a dependent field from the field configuration > Dependencies.

image-20240214-173111.png

The following data source represents the first custom field:  

select distinct continent from countries;


The following data source represents the second custom field:  

select country from countries where continent = {customfield_10800}


The following result will be in the issue view screen: 

  • No labels