I would like to be able to create a map and apply it to the field via code, and not use the API (unless it can pull from a confluence table). Here is what I have been playing around with and it doesn't come up with any results. I feel like i have googled my eyes out trying to find the answer to this
Map<Integer, String> setOptions = [1:"ScriptRunner", 2:"Test Management", 3:"Project Configurator"]
getFieldById('summary').convertToSingleSelect(setOptions)
Just trying to set Summary to a single select list, and populate it with a mapping. How would I do that?