Hello all, I am trying to limit the Select list based on the results of a JQL search. The script I am starting with is below. I am using this in Scriptrunner Behaviours.
I would like to replace the static map of Option1 and Option3 with the Family field results of a JQL search.
def selectList = getFieldByName("Family")
def map
map = ["Option1","Option3"]
selectList.setFieldOptions(map)