Forums

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

Jira automation read Reporter field email value

Urmo Luts March 3, 2022

Hi

Is there any way or script what can read reporter e-mail address and copy this information to custom field?

1 answer

1 vote
d.kirsching
Contributor
March 3, 2022

HI @Urmo Luts 

You can use Atlassian Automation. (https://www.atlassian.com/software/jira/features/automation)

Smart value is {{issue.reporter.emailAddress}}



For exemple : 

Trigger -> Issue created
Action -> Edit Issue / custom field -> implement smart value



Regards

Urmo Luts March 3, 2022

is there any way that when i can get reporter.emailAddress to custom field that system can take only part @emailhost.com?

I dont need full email, only host/domain.

d.kirsching
Contributor
March 3, 2022

You can use this smart value regex

exemple with Hello World

{{issue.summary.substringAfter("W")}} -> orld!

So 

{{issue.reporter.emailAddress.substringafter("@")}}

Like Urmo Luts likes this

Suggest an answer

Log in or Sign up to answer