Forums

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

Update a checkbox through Automation for Jira

Antoine _Klee Group_
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.
February 17, 2022

Hello, I want to write a script that updates a checkbox field without overwriting previously entered values.

Using the "edit issue" in such a way overwrites previous values.

MicrosoftTeams-image.png

Pretty sure I need to use the "advanced field edition" using the Json format and the "update" key but I find no accurate documentation about it.

Anyone to help?

Thanks

 

1 answer

0 votes
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.
February 17, 2022

Hi @Antoine _Klee Group_ 

Please take a look at this documentation page: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Multi-select-custom-field

To add to a multi-select option field, you would want to use "update" and "add", rather than just the shortcut version with "fields".

Another option is to capture the existing values in a created variable and re-add the values with the new ones in one single edit.

Kind regards,
Bill

Antoine _Klee Group_
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.
February 20, 2022

Alright thanks for the reply @Bill Sheboy

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer