M
M
Max7372020-07-16 17:58:19
JIRA
Max737, 2020-07-16 17:58:19

How to populate custom field with dropdown values ​​using Rest API?

Tell me how to fill a custom field with drop-down values ​​using the Rest API (there are a lot of values, I want to add them in bulk)?

Trying "customfield_10406": [{"value":"Option 1"}, {"value":"Option 2"}, {"value":"Option 3"}, {"value":"Option 4"}]

I get the response: {"errorMessages":["Can not instantiate value of type [simple type. class com.atlassian.jira.v2.issue.IssueUpdateBean] from JSON String; no single-String constructor/factory method"]}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeniy Rybalko, 2020-07-18
@whereeaglesdare

Good afternoon
As I understand you are using Multiselect customfield
try this

{
    "update" : {
        "customfield_11272" : [{"set" : {"value" : "External Customer (Worst)","child": {"value":"Production"}}}]
    }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question