Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,925
Community Members
 
Community Events
176
Community Groups

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

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

0 votes
Sam Harding Atlassian Team Jan 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
Site Admin
TAGS

Atlassian Community Events