Forums

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

Using smart value for reporter field

jeroenvandendooren July 25, 2024

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:


{{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

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 25, 2024

Hi @jeroenvandendooren -- 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

jeroenvandendooren August 1, 2024

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 anythingSchermafbeelding 2024-08-01 154010.png

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 1, 2024

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

 

Screenshot 2024-08-01 093144 - Copy.png

 

jeroenvandendooren August 1, 2024

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)

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2024

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.

 

jeroenvandendooren August 2, 2024

tried multiple locations ,isps, browsers,devices, credentials ...

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2024

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/#/

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events