Forums

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

Reporter based on email contained in Description field

angel.orosramirez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 25, 2022

 

Requesting some help

After searching through the community posts, couldn’t find this use case.

When creating a ticket via email, I would like to automatically set the Reporter from an email contain in Description field. In Jira Cloud with Automation, this can be done setting a Rule like the following:

  Picture1.png

 

Using Scriptrunner, is it possible to reproduce this use case ? Could somebody help me to develop it?

I don´t have the expertise on doing this. The idea would be (if in Data Center works similar) to get the email from the Description field, and either set it automatically as the Reporter using this email , or similar as in Cloud, to get the email, put it in a Custom Field using a regex? I found one that might works: https://regex101.com/r/7dYFI3/1 . Then due this email will be already a customer in the project, the “Add new customer” is not needed so this step might be not necessary. Next would be to set the Reporter using the value of the Custom field email, in Cloud the Reporter was set with a smart value {{custom.accountId}}, but in the script not sure how it works.

 

Thanks

1 answer

0 votes
Craig Nodwell
Community Champion
July 25, 2022

Hi @angel.orosramirez welcome to the community.  There is a very similar post here.  Please have a review and keep a watch on it.

Suggest an answer

Log in or Sign up to answer