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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.