Forums

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

Automation - Create card from checklist keeping parent card fields

Kevin O'Neill April 9, 2020

Hi, 

I want to create a button to automate the creation of new cards from a checklist in an existing card but I would like that the new card get the same customs fiels than the parent card where it comes from. Is it possible ?

Thanks,

Kevin

1 answer

1 accepted

0 votes
Answer accepted
Iain Dooley
Community Champion
April 9, 2020

@Kevin O'Neill the custom fields will be the same structure for all cards on a board, but there's no way with Butler to make it retain the same custom field values when created.

Something like this Trellinator command would detect any time a card is linked to another card and copy the custom fields from the parent to the child:

 

https://gist.github.com/iaindooley/808efbe3f906bde7df74b458acaf2e46

 

You can read more about Trellinator here:

 

https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Introducing-Trellinator-Automate-Trello-with-Google-Apps-Script/ba-p/925271

Kevin O'Neill April 14, 2020

Thanks for your answer. I will take a look. 

I think I found another way to deal with my problem. Is it possible to get only a part of a variable in Trello ? I mean if my {cardname} = "Test 123", is it possible to just get "Test" like truncate string function ?

Iain Dooley
Community Champion
April 15, 2020

@Kevin O'Neill hmmm you can under some circumstances. For example you can trigger a command when a card matching a pattern like "Test {*}" is created, and then the text that matches will be stored in a variable {wildcard1} (you can also do regular expression pattern matching) BUT, you can't arbitrarily match text at any time during the command process.

So for example, you can't say "set custom field BLAH to text in trigger card title matching Test {*}" (you could do this in the old Butler Bot but not in the new version based on the power up).

So I don't think there's any way that you'd be able to use an element of the trigger card name or description to set custom fields on a linked card created from a checklist item

Kevin O'Neill April 15, 2020

Okay, I understand. Thank you for your help !

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events