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
Community Members
Community Events
Community Groups

How can I auto-delete a sub-task when I archive an attached card

Hello everyone :) 

It seems like a non-difficult task to perform with butler automation, but I just didn't find the right combination.


I will appreciate your help!

2 answers

Thanks community! 

The solution is:

when a card is archived by anyone, for each card linked in the attachments, remove item "{triggercardlink}" from checklist "Sub-tasks"
0 votes
milynnus Rising Star Oct 20, 2020

@Asaf Hershkovitz 

If you have more than 1 checklist on the card remove checklist {*} will only remove the first checklist. 


But you can just remove the items

when a card is archived, remove all the items from all the checklists


Thanks for the quick answer! unfortunately it is still not working.

Just to be clear, I'm adding 3 screenshots: 1. The project, and the check-list of sub tasks (each of the is linked to a card), 2. The cards as they appear in "Inbox" list, 3. The state after deleting a card, but the sub-task did not change. I wish It will be deleted.

milynnus Rising Star Oct 21, 2020

@Asaf Hershkovitz  

Sorry I misunderstood your problem. Am I correct that you want to delete all the linked items in the checklist on the card that is archived? 

milynnus Rising Star Oct 21, 2020

@Asaf Hershkovitz  Try this.

Couple of things to note (1) Trello will not let you delete a card, so I used archive instead. (2) From testing for other questions, I know that Butler does not had more than 1 checklist in a card when using {*}. So unless you know names of the checklists, below will handle just the first checklist linked items.

when a card is archived by me, for each card linked from an item in checklist "{*}", archive the card

To work the other way around, going to inbox to collect the cards and for each card link in attachment, there is no easy way for Butler to compare things.

Thanks for the suggestion!

Although it didn't work exactly as I wanted, It did helped me order the right commands for the rule! The final rule which does what I wish is:

when a card is archived by anyone, for each card linked in the attachments, remove item "{triggercardlink}" from checklist "Sub-tasks"

While "Sub-tasks" is the specific checklist name I wanted to delete from.

Thank you for the help! 

milynnus Rising Star Oct 23, 2020

@Asaf Hershkovitz  Oh you wanted to removed the linked item pointing to the card that had been archived. Glad that you got it working. 

Like Asaf Hershkovitz likes this

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events