Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Smart value depending on email receiver

Giovanni Casagrande March 21, 2024

Hi, I am using Automation to send an email to Reporter + Request participants. Is there a way to display their name in the email body?

What would I use instead of the smart value below?

Hello {{reporter.displayName}},
this is to inform you that...

Thanks!

 

1 answer

1 accepted

2 votes
Answer accepted
Patrick Tripodi
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 21, 2024

Hi Giovanni, 

Do you mean you want to include both the Reporter and the Request Participants in the email? 

You could simply use {{issue.Request Participants.displayName}}. 

So in your example 

Hello {{issue.reporter.displayName}}, {{issue.Request Participants.displayName}},
this is to inform you that...

Cheers,

Patrick Tripodi
GLiNTECH

Giovanni Casagrande March 21, 2024

Hi, thank you, this will work nicely. I was actually aiming at having each recipient only see its own name, not all the recipient’s.

Also, is there an option to only show the given name?

Patrick Tripodi
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 21, 2024

Hi Giovanni, 

There isn't an out of the box way to show the given name only but you can try {{issue.reporter.displayName.substringBefore(" ")}}

This will return the full name but only show what is before the first space in the full name. 

To send an individual email, you can do the following: 

  • Your Trigger (I used a manual trigger for the screenshot)
  • Use a For Each branch, select Advanced branching
    • For Smart value, enter in {{issue.Request Participants}} (adding the space while typing didn't work for me, so I typed it out and then clicked out and back in and could add the space into Request Participants)
    • Variable name is whatever you want to use, but I used Request
  • Send email action
    • To: {{Request.emailAddress}}
    • Subject: Whatever you want to use
    • Content: Hello {{issue.Request Participants.displayName.substringBefore(" ")}},
      this is to inform you that...
  • Then outside of the branch, add another Send email that is sent to the reporter only.
  • SCR-20240322-iwoo.png
Giovanni Casagrande March 22, 2024

Thank you for your help, I would have never come to this by myself!

Like Patrick Tripodi likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events