Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation Regex - extract email address from Issue Description

I have an automation rule that creates a smart value variable "EmailReporter" using the following smart value 

{{issue.description.match((?<=User\: )(.*))}}

And the issue description contains the line

"User: first.last@domain.com"

I've used a regex validation tool (regex101.com) to validate the regex (?<=User\: )(.*) which locates the email address, but I can't this to work in the automation rule. I need the email address to be able to update the 'reporter' field.

Can anyone see what I'm doing wrong?

2 answers

1 accepted

1 vote
Answer accepted

Hi @Michael Jessopp  Try below regex code :- 

([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)

 

Thanks

{{issue.description.match("([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)")}}

Positive look behind (?<=User\: ) might not be supported.

If you can use capturing groups, something similar to this might give you solution.

regexr.com/5ucd5

The mail address will be in group 2.

Suggest an answer

Log in or Sign up to answer
TAGS

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