How to Create an Automation for Matching the Reporter Email
1. Preparation, create an explicit custom field for this purpose
You need a custom field where the email should be stored later. If you don't have one yet, you can create a new custom field as follows:
Settings > Issues > Custom field > Create custom field
Field Type: Short text
Name: “EDReporterEmail” (in our example)
Hint: make sure that nothing is selected in the screen selection, so that the email is not visible to others.
![Field Type](../__attachments/1210384389/Bildschirmfoto%202022-07-13%20um%2014.42.28.png?inst-v=5b77f3a1-364a-4f51-b1ff-47dd793f1a77)
2. Create a new automation
In the Jira project, go to JIRA Automation and create a new rule:
Project Settings > Automation > Create rule
![Rule](../__attachments/1210384389/Bildschirmfoto%202022-07-19%20um%2010.08.12.png?inst-v=5b77f3a1-364a-4f51-b1ff-47dd793f1a77)
If this is the first rule, then you will first receive a tutorial. You can go through the tutorial or skip it.
New Trigger
Select "Issue created".
![Trigger](../__attachments/1210384389/Bildschirmfoto%202022-07-19%20um%2010.14.25.png?inst-v=5b77f3a1-364a-4f51-b1ff-47dd793f1a77)
Confirm your selection with “Save”
Add component
Select “New action”.
![Component](../__attachments/1210384389/Bildschirmfoto%202022-07-19%20um%2010.25.58.png?inst-v=5b77f3a1-364a-4f51-b1ff-47dd793f1a77)
New Action
Select “Edit issue”.
![Action](../__attachments/1210384389/Bildschirmfoto%202022-07-19%20um%2010.44.44.png?inst-v=5b77f3a1-364a-4f51-b1ff-47dd793f1a77)
Edit issue
Find and select the custom field where the email should be set. In our example "EDReporterEmail".
![Issue](../__attachments/1210384389/Bildschirmfoto%202022-07-19%20um%2010.55.04.png?inst-v=5b77f3a1-364a-4f51-b1ff-47dd793f1a77)
Set the field value:
{{reporter.emailAddress}}
![Automation](../__attachments/1210384389/Bildschirmfoto%202022-07-19%20um%2010.58.36.png?inst-v=5b77f3a1-364a-4f51-b1ff-47dd793f1a77)
After saving assign a name for this automation and turn it on.
![Name Automation](../__attachments/1210384389/Bildschirmfoto%202022-07-19%20um%2011.01.30.png?inst-v=5b77f3a1-364a-4f51-b1ff-47dd793f1a77)
From now on, the email of the reporter is in the custom field for newly created issues and can be used in external data.
$.issue.fields.customfield_XXXXX