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,298,973
Community Members
 
Community Events
165
Community Groups

How to send custom email notification to matched username

I would like to create custom email notifications for certain activities my users could take in Trello, including assigning a card, changing a label or custom field, or commenting and tagging someone. 

 

Butler appears to limit the recipients of custom email notifications to 1) specific email address, 2) All members of a card, 3 All members of a board. 

 

Is there any way to instead dynamically insert the email address dynamically according to the matched user name or triggering user name? 

 

Butler variables - Trello Help

1 answer

1 accepted

0 votes
Answer accepted
Hannah Morgan Community Leader Apr 05, 2022

Hi @Kevin Shiflet ! Welcome to the community :) I guess Trello would need some way of understanding what username corresponds to what email address. An idea could be to create a list and then add a card for each user. The title of the card would be the user's Trello username. This list could exist on the board where the activity is happening, or you might want to store it on a separate board. From there, you can create a custom field called "Email". In each "user card", input their email address. Then, your rule could look like this:

when X happens, find a card titled "{username}" on board "Directory", and send an email notification to "{{%Email}}"

If you don't have custom fields due to being on the free plan, you could just add the email address to the description and just use the {carddescription} variable.

@Hannah Morgan  thanks so much for getting back to me so quickly. I did try the solution you suggested and I'm still having trouble. I put together a new board called Directory, and named a card my username, as you said. The activity I'm looking for to trigger is a tagged comment on a card on a different board. 

 

Then I added a custom field called 'EmailAddress' to that Directory board with my email address and attempted to run the rule like you mentioned. 

 

The rule goes as:

 

'find a  card titled {username} on board 'Directory'

 

then

 

'send an email notification to 'EmailAddressvalue' with subject blahblahblah...

 

I'm not receiving a notification though. Can you see any obvious error I'm missing?

 

Thanks for all your help on this. 

Hannah Morgan Community Leader Apr 06, 2022

@Kevin Shiflet try instead: "send an email notification to "{{%Emailaddress}}""

@Hannah Morgan I tried that and a few variants of that and haven't had success yet. :(

 

Attaching some screenshots. Let me know if you think I'm missing anything obvious. 

 

20220406-153922_PickPick Image_001.png20220406-153904_PickPick Image_001.png20220406-153851_PickPick Image_001.png

Hannah Morgan Community Leader Apr 06, 2022

Try {{%Emailaddress}} - you don't need to add "value" into it.

Hannah Morgan Community Leader Apr 06, 2022

rule action.PNG

@Hannah Morgan thanks for your continued assistance on this. I tried this formatting and got an error: 

 

The email address {{%emailaddress} is invalid.

 

I tried a few different permutations and either got the above error or 'No email address to send to'. 

 

Any thoughts? I don't want to, but I could try moving the directory bit to the same board and just squirrel away the list far to the right. 

Hannah Morgan Community Leader Apr 06, 2022

Oops, looks like my screenshot had a typo. The variable should be {{%Emailaddress}} as mentioned above. Just make sure the field name is spelled the same as your custom field (including any spaces). There's more info on custom field variables here: https://help.trello.com/article/1160-custom-field-variables#custom-field-variables 

@Hannah Morgan thanks for sharing this! It finally worked! I switched it to {matchedusername} and it still worked so I think this should be good. 

 

Thanks for all your help on this. 

@Hannah Morgan One caveat on this, the email body references the card link, which should go back to the commented card, but instead it's going back to the directory card with the email address on it. 

Do you know what's best to get the commented card instead?

Hannah Morgan Community Leader Apr 06, 2022

For your particular trigger, {matchedusername} would find the user that has been @mentioned. {username} will be the user who was associated with the action. 

If you're wanting to pull details from the trigger card into your email message, prefix everything with "trigger". So, {triggercardname}, {triggercardlink}, etc.

Hannah Morgan Community Leader Apr 06, 2022

Awesome! Glad that's all working now :)

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,387 views 28 41
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