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

Additional "* " present when using automation to parse emailed requests

Roland Kiss August 27, 2024

I have an automation that works inside a sandbox version where I recieve an emailed request (this is automated aswell and will always be formatted the same way) and takes the information from the description when the issue is created and populates ticket fields. In the sandbox automation I was able to create a variable for ID, Date, Owner without much trouble through the help of the community here and research I did. Although using that same smart values and regular expression I know find myself getting the necessary info but with the string "* " infront of it. This way when I use the value to populate other fields or search it does not do this correctly. I will try to give specifics now and link to the resources I have been using, thanks for any help in advance.

 

Sample description information

Name: Thinkpad T15 Gen 3 - 9990000

Owner: TEST User

Serial Number: AA1AAAAA

Ledger Number: 9990000

 

My automation step currently

Create Variable Action

Variable Name: Name

Smart Value - {{issue.Description.match("[\n\r].*Name:\s*([^\n\r]*)").trim()}}

Returned value through log action - * Thinkpad T15 Gen 3 - 9990000

Expected returned value through log action - Thinkpad T15 Gen 3 - 9990000

 

My previous community post of when I created this automation in my sandbox version

Solved: I am struggling to extract Name and Date data out ... (atlassian.com)

 

Resources used previously

 

Automation smart values - text fields | Cloud automation Cloud | Atlassian Support

 

regex101: build, test, and debug regex

 

1 answer

1 accepted

0 votes
Answer accepted
Roland Kiss September 3, 2024

The incoming email request had been changed for readability by making the areas looked for by regular expression bold, once this was removed the automation worked as expected

Suggest an answer

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

Atlassian Community Events