Forums

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

How to update checkbox through automation?

Tiago Machado October 24, 2022

Hi there,

I know I need to use advanced edition and using JSON, but I'm failing to fully understand the syntax. 

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Multi-select-custom-field

If I have two checkboxes within the same section "CustomFieldA", and if those options are "ABC" and "DEF" in their labels, how do i do it?

Is it like this? But what do I put in the value?

"CustomFieldA" : [{ "value" : "option1"}, {"value" : "option2"}]

1 answer

1 accepted

1 vote
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 24, 2022

Hi @Tiago Machado -- Welcome to the Atlassian Community!

Yes, that is one of the syntaxes to set a checkbox field, by either entering the drop-down text as the option values or the id values, as shown here: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Checkbox-custom-field

So if you wanted to select both ABC and DEF please try this:

{
"fields": {
"customFieldA": [{ "value" : "ABC"}, {"value" : "DEF"}]
}
}

Remember to find and use your custom field name or id.

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer