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

How can I set a field with an email address based on another field that has a full name

Akram Rajwani March 6, 2024

I have a Jira team managed project. On issue creation, I'd like to set an Email address custom field automatically by converting a text value from another Preferred Name custom field. The caveat is that Preferred Name can be "First Last" or "First Middle Last", but id only want the email address to take the First and Last to create this: first.last@company.com. 

 

Would appreciate assistance.

1 answer

1 accepted

0 votes
Answer accepted
Hariharan Iyer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 6, 2024

Hi @Akram Rajwani ,

 

You can do something like this

{{issue.summary.split(" ").first}}.{{issue.summary.split(" ").last}}@company.com

Here I used summary as an example, but you can replace that with your custom field.

Hope that helps!

Akram Rajwani March 7, 2024

This worked perfectly! Thank you so much for your help!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events