Forums

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

How to update only one item in a checklist?

Alex Atkinson September 19, 2022

Hello,

Every time I try updating my custom field checklist using the REST API, if one item is checked true, the issue will display all items checked even though I set it to false. For example: 

 

"update": {
"customfield_10200": [
{
"set": [
{
"id": "10200",
"name": "Contact Manager",
"checked": "true",
},
{
"id": "10201",
"name": "Create user in AD",
"checked": "false",
},
{
"id": "10202",
"name": "Assign user to AD groups",
"checked": "false",
},
{
"id": "10203",
"name": "Assign M365 license",
"checked": "false",
}
Screen Shot 2022-09-19 at 9.11.45 AM.png
Only one item is checked true, but when I run it, the issue has all items checked.
(Note: if each item is checked false, then no item is checked in the issue.)
Please help. Thanks.

1 answer

0 votes
Alex Atkinson September 19, 2022

.

Wojciech Wardaszko
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.
September 20, 2022

Hi @Alex Atkinson

Could you please specify which app provides checklist capability for your Jira instance? Without this piece of information it's hard to even start answering your question.

Since checklists are not native to Jira, there surely is an app installed in your environment that gives you this option.

With our Issue Checklist for Jira all checklists can be controlled by one Checklist text custom field, so you could control whether an item is checked or not by special markup. 

Your request could look like this:
"fields": { "customfield_10200": "[x] Contact Manager\n* [] Create user in AD\n* []Assign user to AD groups\n* [] Assign M365 license" }

If this peaks your interest (or anyone else's reading this), you can read more about our interactions with Jira's REST Api here.

Cheers,

Suggest an answer

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

Atlassian Community Events