Forums

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

Using Smart Values to find and copy issue description text to a field using Regex

Noah Tanzer
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!
January 23, 2023

Hello!

In my Service Management project, issue descriptions sometimes contain serial numbers matching the regex pattern "[0-9]{8}[A-Z]{4}[0-9]{8}". (ex. 12345678ABCD12345678)

I am trying to use the {{issue.description.match}} smart value to search tickets and populate any serial numbers to a custom field I've created (Serial Number). My automation registers "success" but does not populate any Value to the Serial Number field.


Automation SS.jpg

 

Q: Is my Regex correct to make this possible or are there alternative methods you can suggest?

1 answer

1 accepted

1 vote
Answer accepted
Sam Harding
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 24, 2023

Hi @Noah Tanzer 

Your regex looks good. Does your issue contain just the serial number, or is there other bits of data in the description? Your regex requires it to only have the serial number in the description.

Otherwise, perhaps try logging out {{issue.description}} using `Log Action` component? And maybe you can try playing around with the smart value there to see if you can get results.

If that doesn't bear fruit, you can raise this through the support portal at https://getsupport.atlassian.com/ so the team can take a closer look.

Cheers
Sam

Suggest an answer

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

Atlassian Community Events