Forums

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

Fetch mailaddress from description field to custom fields

susann.ivarsson@dahl.se October 26, 2021

Hi,

I'm trying to fetch a mailaddress in the description field and add it to a custom field but it's not working. I use automation and issue.description.match but I can't get it to work.

The mailaddress which I'll fetch have the following format

Från: Test User <testuser@hotmail.com>

I have tryid the expression {{issue.description.match("Från:\W(.*)")}} but this fetch the whole text Test User <testuser@hotmail.com> and I only want to fetch the actual mailaddress which is inside <>.

{{issue.description.match("Från:\W(.*)")}}

I have also tryid {{issue.description.match("Från:\s\w+\s\w+\s<(.*)>")}} but then nothing happend (nothing is fetched). 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events