How to access the display value of a list box

serge calderara
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 15, 2021

Dear all,

I have a list box custom field value which is populate dynamically from an external source.
I need to display the exact display value of my custom field using script runner, any idea how to do that ?

If I get the value of the customer field, it return value 3 but in my form the field displays "3- Ms Access"

Any method like getDisplayValue instead of GetValue ??

regards

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 15, 2021

getValue should be returning an option, not a simple number (that might be the id of the option though).  If it is a valid option, then getValue().getName() should fetch the name you see on-screen.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events