Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hello, I have an automation rule set up to search the issue.description and find the email address and copy it to the correct fields. The format of the description has changed since I've initially implemented the automation and now I am having trouble pulling it out. Here is a snippet of what my description looks like:
Hi @JayJuan Jones Maybe try this for your regex?
(?<=mailto:)(.*)(?=])
no luck with this, it's not even pulling a value back.
{{issue.description.match(?<=mailto:)(.*)(?=])}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can use this regex : {{issue.description.match("\W([\w\-\.]+@[\w\-\.]+)+\W")}}
I've tested and it works fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
looks like it's pulling in, but its adding it to my email field 3 times, any this can be tweaked to only pull it in once and remove the other ones? or remove the comma and anything after it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can store in a variable
{{issue.description.match("\W([\w\-\.]+@[\w\-\.]+)+\W")}}
and use {{variable.substringBefore(",")}}
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this is what I have right now:
Can you give me an example on how to do what you said to store the variable?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
okay gotcha, I added that but how would I use it? Would I just be assigning the value of the variable, like {{mailtext}} And is the SmartValue the same for Mail and mailtext?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, it looks like it still set the email address twice :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You just need to indicate this variable {{Mail}} in my screenshot in your edit issue fields action.
ps : don't take care about {{mailtext}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
gotcha! I'm still getting the email copied in my field twice :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you try this pls : {{Mail.substringBefore(",")}} ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
got it!!! you're awesomeeeee! I learned so much from this post and now I am about to revamp all my automation rules!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So nice to hear that :)
Glad to help.
Could you please voted for an accepted answer in this thread ?
Have a nice day.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
{issue.description.match("\W([\w\-\.]+@[\w\-\.]+)+\W")}}
This works absolutely fine, and extract the email from the description.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.