How to create a combobox of possible values

How to create a combobox of possible values

Is there a way to dynamically populate a combobox with the attributes a
certain property of an artifact can take on?
e.g.
I have a custom field set up on User Stories. I want to be able to
populate a combobox with all the possible values for this custom field
without hard-coding it in.