The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events