Forums

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

Ticking Checkbox Upon Issue Creation via REST API

Arjay Villavicencio October 18, 2021

I would like to seek help on ticking checkboxes upon issue creation via rest API.

I have three checkboxes:

CheckBox1

CheckBox2

CheckBox3

Each checkbox have same name ,customfield_10000 , but different id.

CheckBox1 - id : customfield_10000-1 | value : 10700

CheckBox2 - id : customfield_10000-2 | value : 10701

CheckBox3 - id : customfield_10000-3 | value : 10702

Lets say I want to tick Checkbox 1 upon creation of issue via rest api.

My current code:

{ "customfield_10000 " : [
        {
            "value" : "10700",
            "id" : " customfield_10000-1"
        }
    ]
}

Result:

'error': {'customfield_10000 ': "Option value '10700' is not valid"}

I tried to put "Y" on value but I also got an Error:

'Error', 'error': {'customfield_10000 ': "Option value 'Y' is not valid"}

Thank you!

 

1 answer

1 accepted

0 votes
Answer accepted
Thomas Deiler
Community Champion
October 18, 2021

Dear @Arjay Villavicencio ,

all you need is to read my article ;)

So long

Thomas

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events