Forums

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

Automate duplicate checklist when creating it

Rebeca Burguera
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!
May 29, 2023

Good morning, I want that when I create a checklist on a card it is copied with all its elements in a new checklist on the same card.

1 answer

1 accepted

1 vote
Answer accepted
Mike - Dreamsuite Consulting
Community Champion
May 30, 2023

You can do this but you will have to be sure to protect against a couple of things:

  1. Loop conditions.  If you use automations to do this, you could get trapped in a loop of checklist creation, which Butler will just halt the automation if it detects it
  2. If you trigger on checklist creation, you will just end up with a blank checklist

To solve the first, you make sure the duplicate checklist has a unique name.  

when checklist "regex:/^((?!Duplicate).)*$/i" is added to a card, add the "{checklistname}" checklist from card "{triggercardlink}" renamed to "Duplicate {checklistname}" to the card

Instead of Duplicate, the word can be any word of your choosing

 

To solve the second, you require an automation to duplicate checklist items when they are created:

when an item is added to checklist "{checklistname}", add item "{checklistitemname}" to checklist "Duplicate {checklistname}"

You can then go further and make sure that if items are removed from the first checklist, they also are removed from the duplicate:

when an item is removed from a checklist, remove item "{checklistitemname}" from checklist "Duplicate {checklistname}"

The same can happen when 1 is checked:

when an item is checked, check item "{checklistitemname}" in checklist "Duplicate {checklistname}"

 

 See it in action below:

ezgif.com-video-to-gif.gif

Rebeca Burguera
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!
May 30, 2023

Thank you very much! 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events