This sample behaviour code provides the ability to get the displayed value from the database picker field and pass it to a text field.
I am a project manager, and the issues in my Jira instance include a database picker script field that allows me to
select a customer from our internal customer relationship management (CRM) database. I want to take the value selected from that database picker field and pass it to a text field.
However, the value returned by the database picker field is the ID of the customer in our CRM, rather than the customer's name.
This script enables me to take the name displayed in the database picker field and paste it into a specified text field.
Good to Know
In this sample code, the database picker is connected to the local database used by Jira. For more information on how to configure the
local database connection, please visit this link