Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ScriptRunner behaviors to populate drop down list

Jordan Berry
Contributor
June 8, 2020

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? 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events