Forums

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

Automation: Prefixes for Custom Fields - Syntax

Alec Ellsworth
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 29, 2023

I am looking to add the prefix "found" to a custom field reference from a linked card. I could not find this in the documentation. I have already tried a few variations to see if I could get it to work, with no success. 

My rule in question: when a card is added to the board by anyone, find a card with link "{{%Test Card ID}}", link the cards together, find the first card linked in the attachments, and set custom field "Device Name" to "{{found%Device Name}}"

This sets the custom field "Device Name" to the string "{{found%Device Name}}". I have also tried "{found{%Device Name}}", because I am unsure of how these are being parsed. 

1 answer

0 votes
Daydreamer Mike
Community Champion
November 29, 2023

Hi @Alec Ellsworth 

Firstly, you wouldn't require putting the word found inside the {{...}}

Secondly,Trello automation lacks the capability to reference source card custom field names but there is a workaround...

Firstly, create a user account specifically designed to run automations.  I call mine bots, I'll use @ellsworthbot for the example below

For it to work, you should create these rules in the @ellsworthbot account..

 

Rule 1

when a card is added to the board, find a card with link [insert card link here], link the cards together, clear custom field "Device Name"

Rule 2

when custom field "Device Name" is cleared by me, set custom field to "Device Name" to "{customfieldvaluebefore}"

Rule 3

when custom field "Device Name is set by me, find the last card linked in the attachments and set the custom field "Device name" to "Found {customfieldvalue} 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events