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,293,705
Community Members
 
Community Events
165
Community Groups

Jira Automation - extract the email domain from the autor

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 vote
Stefan Salzl Community Leader 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 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
Site Admin
TAGS
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

217 views 0 6
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