Edit Custom Checklist allowedValues using REST API

Joshua Warren January 9, 2019

Is it possible to alter the allowed values of a custom-field checklist using the REST API? I've found the create/edit meta workarounds which allow me to see the already set values, but I am hoping to alter them programatically. At the moment I get an error: 

    "Options cannot be added or removed from a Checklist when updating it via REST. You must provide all items originating from options."

If not is there a custom-field type that is similar that does allow this?

2 answers

0 votes
artem.pylypchuk March 9, 2020
issue.update(fields={
"customfield_49002": [
{
"checked":'true',
"option": 'true',
"name":"Container was correctly deployed in QA",
"id":76502,
},
...
]
})

You'll need to send id, checked and option:true. Not sure about name, could be optional.

I also think you need to send all items from the checklist in one batch.

0 votes
Eddy Fras October 9, 2019

Hi,

Same problem for me.

Are you using the Checklist plugin from Okapya ?

Did you find a way to add a new item in a checklist using REST API ?

Thanks

Suggest an answer

Log in or Sign up to answer