LDAP Datasource


Suppose we have a user picker Elements Connect field, Live Text type plugged on LDAP datasource.

Edit Query:

dc=planetexpress,dc=com?cn,employeeType?sub?(objectClass=person)

This field has the attribute cn as a Key, it accepts multiple values, and in the Template the Key and other attributes are displayed.





If the user was allowed to select multiple values in the Edit view, setting the Display View will be by using the $currentCustomfieldValue variable and a function that will handle the multiple values; otherwise, only the first value will be displayed.

To display this field properly on Jira issue view screen, we need to access the field Key in the Display query by using the $currentCustomfieldValue variable with one of the function intList(), stringList(), or serialize(<string>). All details about these functions could be found in our documentation.

This is the Display view query that will retrieve the multiple selected values by using the $currentCustomfieldValue variable (which contains the field Keys).

dc=planetexpress,dc=com?cn,employeeType?sub?(&(objectClass=person)(|$currentCustomfieldValue.prefix("(cn=").suffix(")").serialize("")))

Here's a sample issue with the field displaying multiple values:




And here's the above Display view query and how it was evaluated against the selected values: