Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to use rest endpoints to change the options of a issue select options?

HAN RUI
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!
June 26, 2024

My requirement is to be able to send a request externally with some options in the body of the request, and then go and modify one of the select options corresponding to issue

e.g

request url: {jiraurl}/rest/scriptrunner/latest/custom/setSingleSelectOptions

body { "issueKey": "issueKey1", "options":[ {"key": "key1","value":"value1"}, {"key": "key2","value":"value2"}, {"key": "key3","value":"value3"}, {"key": "key4","value":"value4"}, {"key": "key5","value":"value5"}, {"key": "key6","value":"value6"}, ] }

Change the list of options in the select options of a reset custom field on issue by making a request like this

Thanks

1 answer

0 votes
Tansu Akdeniz
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 30, 2024

Hi @HAN RUI 

Welcome to the community.

Do you want to change custom field select list options? I mean adding/removing options? Or do you want to set/clear value in issue?

HAN RUI
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 1, 2024

I want to completely replace the options in the single select
For example
Original options: A,B,C
Changed options: D,E,F

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events