Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,994
Community Members
 
Community Events
168
Community Groups

How to update only one item in a checklist?

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

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
Site Admin
TAGS

Atlassian Community Events