Forums

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

Jira Automation - extract the email domain from the autor

Thies Uhlenbruch
Contributor
May 19, 2022

Hey,

I want to create a jira automation in which I try to extract all autors who have the email domain xxx@special-domain.de to route them to a team queue.

I can't achieve the condition.

Cheers,

Thies

2 answers

1 accepted

2 votes
Answer accepted
Stefan Salzl
Community Champion
May 20, 2022

Hi @Thies Uhlenbruch 

you could use the substringAfter method of smart values:

substringAfter( String separator)

{{issue.reporter.emailAddress.substringAfter(„@„)

Best
Stefan

1 vote
Filipi Lima
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 20, 2022

Hi, Thies,

You can try accessing that information using:
 {{issue.reporter.emailAddress}} 

You can use other user fields instead of reporter according to your use case. From that you can split the e-mail value:

{{reporter.emailAddress.split("@").get(1)}}

get(1) to get the second element of the array, since the username preceding the @ is get(0)

You could then do an advanced compare with the hardcoded string.

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