I have a field name Account name and I want to fetch the value for it from the "Account Name" in the ticket description (example below) into the custom field.
Example ticket description:
Entity Type: VirtualMachine
Status: Failed
Policy Name: creationrule
Rule Description: Install security for all virtual machines.
Severity: High
Account Name: mmc-pdg-dmc-ra
I used below logic to edit field but it is throwing error:
{{issue.description.split("\n").match"Account name: (.*)").last}}
Output expectation:
Your approach is correct.
Was it working before? What is the error now?
No i added it today.
Getting following error:
Error rendering smart-values when executing this rule:
Failed to get value for issue.description.split("\n").match"Account name: (.*)").last: {{issue.description.split("\n").match"Account name: (.*)").last}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is at least one syntax error in your expression.
Correctly it should be:
{{issue.description.split("\n").match("Account name: (.*)").last}}
I added a missing opening parentheses in front of the "Account name..." string!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.