Using smart value for reporter field
Asked by jeroenvandendooren:

Hi all,

I'm making an automation that would change a report from a general mailing system to a ticket assigned to the user who used said system.  

the ticket is created, and contains the text in discription that matches email adres of the user.  

I cannot seem to use a smart value for the reporter field.

I've done 'add comment' with the same 'logic' and this works perfectly:  

<br />

{{issue.description.match(".\*An email has just been reported by (\\S+).\*")}}

but when i start typing this into the 'reporter' field it cycles the existing email adresses and doesn't accept this input and leaves it blank when i set the value  

I based the idea on:   

<https://confluence.atlassian.com/jirakb/extract-content-out-of-description-and-summary-with-regex-and-automation-1157495262.html>  

but can't seem to enter the regex into the field


Answers:
author: Bill Sheboy
body: Hi [@jeroenvandendooren](/t5/user/viewprofilepage/user-id/1680198) -- Welcome to the Atlassian Community!

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!

Until we see those...

To use a smart value expression in issue edit fields, type in the expression and it will appear below the field. When it does, select it for use.

That knowledgebase article is for Jira Server / Data Center, but I just tested and apparently the Reporter field can also now be set from an email address for Jira Cloud.

Kind regards,  
Bill

comments: author: jeroenvandendooren
body: it's a super easy rule: but as you see when i type the logic it only shows mail adresses and I can't select anything![Schermafbeelding 2024-08-01 154010.png](https://community.atlassian.com/t5/image/serverpage/image-id/339443i1B68FFB1C71FD213/image-size/large?v=v2&px=999 "Schermafbeelding 2024-08-01 154010.png")


author: Bill Sheboy
body: When I type in (or paste in) as smart value expression, it does appear below the Reporter field, allowing it to be selected. Please try that again and *do not select the dropdown list (arrow at that right)* and it should work.

Here is an example where I used a Created Variable to do this successfully:

![Screenshot 2024-08-01 093120 - Copy.png](https://community.atlassian.com/t5/image/serverpage/image-id/339522i9D4E1E15B7F7FB0B/image-dimensions/275x254?v=v2 "Screenshot 2024-08-01 093120 - Copy.png")

![Screenshot 2024-08-01 093144 - Copy.png](https://community.atlassian.com/t5/image/serverpage/image-id/339523iA0F2BE9534FCD8EA/image-dimensions/275x296?v=v2 "Screenshot 2024-08-01 093144 - Copy.png")


author: jeroenvandendooren
body: When I start typing an accolade I see 'Smart value '{' pop up under the textbox for a fraction of a second to then dissapear and be replace by the list of email adresses again. (without touching the dropdownlist arrow)


author: Bill Sheboy
body: This could be a browser hiccup, so perhaps try:

* close all browsers,
* open one back up,
* clear the saved cache,
* close the browser again,
* open the browser, login, and try it again.


author: jeroenvandendooren
body: tried multiple locations ,isps, browsers,devices, credentials ...


author: Bill Sheboy
body: Next thing to try: check for a "glitched" rule.

For some reason, rules can get broken by too many edit / publish cycles. I do not know the root cause for this, but the way to check is:

* same rule
  * disable your rule
  * navigate to the rule list
  * return to the rule editor
  * enable your rule
  * try to make the edit and publish
  * if that does not help...
* new rule
  * disable your rule
  * re-create it from scratch

If that does not help, there could be some underlying problem with your project or Jira site. Perhaps work with your Jira Site Admin to submit a ticket to Atlassian Support, as they may see something in their internal logs which we are missing:

<https://support.atlassian.com/contact/#/>


Tags: cloud

jira-cloud