Is it possible to Butler create a card with a custom field?

ricardo_baltazar March 27, 2022

My automation is:

When a card is moved to Done
Create a new card with Title "MY NEW TITLE {{%customfieldvalue}} in list ToDo.

It works, but the new card don't have a custom field with any value, like the original card have.
I tryed to create a new action to set a custom field with the {{%customfieldvalue}}, but at this time the {{%customfieldvalue}} is empty. I think that is because the action ("create a new card") executed before created a card with an empty custom field.

I would like to create a new card with the same value of the custom field of the card that is moved to Done list.

Screen Shot 2022-03-27 at 20.27.37.png

Where is the custom fiel options?

1 answer

1 accepted

1 vote
Answer accepted
milynnus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 27, 2022

@ricardo_baltazar 

I think you should be using {{%CF_Name}} 

ricardo_baltazar March 28, 2022
when a card with a name starting with "New video filmed:" is moved into list "Done 🎉", create a new card with title "Preparar projeto e Sources: {{%FilmTitle}}" in list "To Do", and set custom field "FilmTitle" to "{{%CF_FilmTitle}}"

The log:

Running command on board XPTO.
I created card link_to_card in list "To Do".
I cleared custom field "FilmTitle" in card link_to_card.
The command finished running.
Total operations: 2

The second operation just cleared the custom field
milynnus
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 28, 2022

@ricardo_baltazar 

without trying the code in Trello, your challenge will be in trying to set the CF on the new card with the custom field from the trigger card. For this reason, I have this created

https://github.com/xu2xulim/Superhero/blob/master/Superhero%20on%20deta/Micros/Custom%20Fields.md

ricardo_baltazar March 28, 2022
when a card with a name starting with "Original cartd:" is moved into list "Done 🎉", post to url "https://jviwoq.deta.dev/get_customfields?api_key=44...&token=2f92..." with payload "{\"card_id\" : \"{cardidlong}\"}", create a new card with title "Created: {httpresponse.FilmTitle}" in list "To Do", and set custom field "FilmTitle" to "{httpresponse.FilmTitle}"
Ty man!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events