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
4,293,465
Community Members
 
Community Events
165
Community Groups

Creating a card from template and connecting with the clicked card

Hello,

I would like to create a button that will make a copy of the card from the card template and then connects this newly created card with the card from which I clicked the button. And also if I could rename a new card from randonName1 to the end of the card name from which the button was clicked that would be a bonus. (the beginning of the card name from which I am clicking is always the same)

Thank you for your help

3 answers

2 accepted

1 vote
Answer accepted

@Zdeněk Nováček 

Is this what you are looking for

find a card titled "A Template Card", copy the card to the top of list "Inbox", find a card with link "{copycardlink}", add link "{triggercardlink}", and rename the card to "{triggercardname}"

1 vote
Answer accepted
Hannah Morgan Community Leader Mar 29, 2022

Hi @Zdeněk Nováček ! When it comes to card button actions, you can either copy the "trigger" card or create a new card. It doesn't look like it's possible to create an action that says "copy another specific card". 

However, when setting the action to create a new card, you can define in your command to add all of the things that are in your template card (checklists, labels, description, etc.)

When it comes to taking a specific word or phrase from a trigger card and applying it to the "action" card, you can achieve this using wildcards. The trigger needs to include a wildcard I believe, so I'm not sure you can use wildcards in card buttons. You can use it in a rule though. So if your command was to trigger based on a label application for example, rather than the click of a button, your rule could look something like this:

When the "Copy" label is applied to a card with a name containing "TEST {*}", create a new card with title "{wildcard1}", with description "xxx", in list "X", and add the "X" checklist from card "Template", and link the cards together


The "name containing part" would contain the beginning of the card name which is always the same. So if the "trigger" card is called "TEST 12345", when applying the custom label to this card, a new card will be created called "12345" with all the predefined information.

If you'd prefer to use the card button method, you just won't be able to use wildcards AFAIK.

Thank you for your answers, they put me on a right path which was successful. I am uploading screens bellow. I create multiple card from templates by clicking one button, then I connect them from the card that was clicked and finally rename the card if needed. Renaming the card had to be done by rules, separate from the button function.

Rename rule:

Snímek obrazovky 2022-03-30 v 8.37.52.png

Button function:

Snímek obrazovky 2022-03-30 v 8.40.03.png

Suggest an answer

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

Taco Tuesday: New years' resolutions with Trello

Congratulations to @Laura Holton , our latest winner of Taco Tuesday! And thanks to @Kristján Geir Mathiesen for sharing the picture of Taco having fun with his new friend  B...

2,265 views 27 40
Join discussion

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