Hi! I just found out that Trello automations can use regex, which is going to open up a whole new realm of possibilities for me!
All of my card names contain a six-digit number. I can get the trigger to fire when I add a card that contains the number with this sort of thing:
regex:/\d{6}/
But I can't figure out how to get the actions to recall that number and do things with it. For example, I'd love to do something like,
When a card with a name containing "regex:/\d{6}/" is added to the board, set custom field Job Code to [the number]
The number bit is the part I can't figure out how to do. Is there a way to use wildcards without specifying surrounding text? Could I set that number string as a wildcard somehow? I just want it to pick out the 6-digit number and do operations with that data. Thank you!
@Melanie Fallow for this specific use case, using wildcards might be better suited. This would only work if your card titles followed a set pattern (e.g. Job Code: 1234 - card name).
When a card with a name containing "Job Code: {*}" is added to the board, set custom field Job Code to {wildcard1}
Hope that helps!
Thanks for the answer! I have 2 boards I’m currently working with. One has cards with a formal naming convention, where I could use this. But the other doesn’t—I’m trying to get it to pick out the code from wherever it is in the name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, sorry just re-reading your original message. I'm not sure if it's possible with regex 🤔 do the cards follow any sort of pattern at all? For example, the number is always at the beginning of the title, or at the end? Or is it just random? If the number is always at the beginning of the title, you could do:
When a card with a name containing {* } is added to the board, set custom field Job Code to {wildcard1}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.