Forums

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

ScriptRunner adding values to Select List

Łukasz Grobelny
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 23, 2020

Hi,

 

I've been trying to update the existing select list via call from ScriptRunner, but nothing works. I want to pull the data from one source, and pass it as a values to the Select List, but so far wasn't able to add one option

 

Last version of code:

def update = put("https://something.atlassian.net/rest/api/3/customField/10225/option")
.headers(['Content-Type':'application/json'])
.body([
options:[
values:[
value: "test" as String
]]
]).asString()

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Łukasz Grobelny
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 27, 2020

OK, got it

TAGS
AUG Leaders

Atlassian Community Events