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

Read from description and set reporter for email requests

Hi,

 

I'm automating an email request and below is my use case. 

When users send an email to createTicekt@test.com, an email request ticket will be created.  

Below is the sample from the email 

```

User Name :  Krishna

User email : Krishna@test.com

User location : Las Vegas

```

I'm writing the automation to read the description when the new ticket is created. I need to pick the value from User email and set him as the reporter. 

In the above case Krishna@test.com will be reporter.  I'm trying to use smart values to get the user email from the description and the below is the regex i'm using. 

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

Can someone provide suggestion on the regex to get the user email as the above regex is not working ? 

Thank you

1 answer

0 votes
Florian PEREZ Community Leader Jun 12, 2022

Hello, 

AFAIK You should not need to get this information by building a regex.

When user open a request by mail, JSM keep the value so you can use it. You should be able to get the value with something like {{creator.email}} (not tested but it should be something like that).

The use case you mention could also be someone open the ticket in behalf of someone else. In this case there is 2 ways, first you can add them as cc on the mail and use the value of viewers (user in cc are added as viewer). 

If you want to check more about you regex and your not on a free plan you should open a ticket to the atlassian support. I think it should be a really quick for them to help you on this one. 

Hope this help. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
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