Forums

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

Jira Automation JSON for ticking checkbox on an existing Checklist

Mattrix
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 28, 2023

I can successfully add a new custom Checklist to an issue with Jira Automation using this JSON:

{
     “Fields”: {
               “Checklist type”: [
                    {“name”: “item1”},
                    {“name”: “item2”}
               ]
     }
}

What I'm struggling with is the JSON to edit (tick) any one of these checkbox items.

Can anyone please help to advise (thanks).

1 answer

1 vote
Maxime Lefebvre _Okapya_
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 28, 2023

Hi @Mattrix

I'm guessing you are using our app Checklist for Jira and I will provide the necessary information for it.

In version 7, we've added an Edit Checklist automation action that you could use to check existing items. If you don't have version 7, you can take a look at our documentation how to update existing items using Automation and REST API.

If your goal is not to update existing items, but rather overwrite the checklist with items that are already checked, simply add the following in your payload:

“Checklist type”: [
    { "name": "item1", checked: true },
    { "name": "item2", checked: false }

Here's documentation of all available JSON properties.

Let me know if this helps!
Maxime

Mattrix
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 3, 2023

Thank-you, Maxime, and apologies for the delay in responding

Suggest an answer

Log in or Sign up to answer