Creating a card on target board if a card with a name from source board doesn't exist w/Butler

Olivia January 15, 2025

I need the following logic for boards A and B

- "c1" card is created at A ->

         Find "c1" at B - doesn't exist:

                 Create "c1" at B

                       Link A.c1(source) to "c1" at B

- one more card named "c1" is created A. -> 

         Find "c1" at B - it exists:

                 Link A.c1(source) to B.c1 (existing)

 

What I'm struggling with is to "catch" an event when no card is found by name and apply an action to it  

 

1 answer

0 votes
DiMaggio Tucci
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 16, 2025

I'm assuming you want the card to be a copy.

On board A:

when a card is created in the board, create a unique card with title {cardname} on board b. Archive the card. Find a card titled {triggercardname} on board a. Copy the card to the top of the list "whatever" on board b. Link the cards together.

This will copy the card if it doesn't already exist, and do nothing if it doesn't, due to the "unique" keyword. We archive the first card and then copy it again so that we can have a true copy, as the "unique" keyword only works on creating new cards and not on copying cards. The "unique" card only exists so that we can check if the card exists, so we archive the "unique" card when we're done.

So, this handles the case when the card doesn't exist on board b, and will just stop running before anything is done if the card does exist on board b.

You can then do:

when a card is created in board A, find a card titled {cardname} on board b. Link the cards together.

This should handle the case where the card already exists on board b.

 

If you just want the cards to have the same name (and maybe something else) but not otherwise be a copy, then don't archive the card or do anything after that in the first automation, and manually copy whatever it is other than the name that you want to be on the card in board b instead.

I have not tested this myself, though.

 

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events