It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to create a Rule to archive a new card with the same name on a card already in board?

Hi 

 

Can I create a rule to archive automatically a new card that added to the board if there is another card with the same name already on the board?

Thanks

2 answers

1 accepted

1 vote
Answer accepted
Iain Dooley Community Leader Sep 15, 2020

@Cesar Sasaki there's no direct way to do this, but here's a somewhat insane workaround:

First create this command:

when a card is added to the board, collect all cards with a name starting with "{triggercardname}" into linked items in checklist "Duplicates", for each card linked from an item in checklist "Duplicates", archive the card, find a card with link "{triggercardlink}", unarchive the card, remove link "{triggercardlink}", remove item "{triggercardlink}", and add the green "Check Duplicates" label to the card

Then create this command:

when the green "Check Duplicates" label is added to a card, remove the green "Check Duplicates" label from the card, for each card linked from an item in checklist "Duplicates", unarchive the card, remove link "{triggercardlink}", find a card with link "{triggercardlink}", and archive the card

I can't test this completely because I don't have business class and can only have one command of each type, but I have tested each command individually -- so long as the addition of the "Check Duplicates" label triggers the second command, what you end up with is the card you created that matches any cards in the board being archived.

One caveat is that you can't do "equals", the closest you can get is "starting with".

Hi @Iain Dooley it worked! thanks!

It seems confusing but it worked, I'll have to check my other rules because when you unarchive and archive a card is the same as "when added"?

Like Iain Dooley likes this
Iain Dooley Community Leader Sep 15, 2020

@Cesar Sasaki haha yes it is quite a crazy workaround. If you're using Gmail you might also like my product BenkoBoard which will thread your conversations, so you can have one card for each Gmail thread which will update automatically when new emails arrive on the same conversation:

http://www.benkoboard.com/

Iain Dooley Community Leader Sep 15, 2020

@Cesar Sasaki oh sorry to answer your question: no unarchiving won't trigger an "added card" event.

Hi @Iain Dooley it seems that you have lots of experience using Butler rules.

I already had a rule that post a http request when a card is added. 

How can I merge it with the one that archives the duplicate card?. 

Can it be done that only the first card posts the http request and not the duplciates that comes after?

Iain Dooley Community Leader Sep 17, 2020

@Cesar Sasaki in general if I want to do something like that I add labels and then filter to only trigger on cards containing certain labels.

@Iain Dooley  but how can I add the label to the first card?

Something like: If I create a new card

Then: Copy the same card in the same board

And move it to "Archives"

I think you want to duplicate if, by mistake, you delete the card

Hi I dont want to duplicate I'm just using the email to trello function so sometimes I get the same email twice.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

Develop a new Habit during Lockdown

If you had to thrive a new habit during a lockdown, what would it be? Trello

1,627 views 15 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you