-
Type:
Bug
-
Resolution: Not a bug
-
Priority:
Low
-
Component/s: Operations - Sync
-
None
-
Severity 3 - Minor
Issue Summary
When using extract regex in Sync to extract specific value from a string when creating a work item from an alert, the value output also includes the literal string defined in the regex.
Steps to Reproduce
If we have the following in the message field of the alert created by an integration
Importance: VIP Priority: P1 Urgency: High
In Sync, we then use the following regex to extract the value for Priority in the description field
{{message.extract(/Priority: (\S+)/)}}
The following is then output as a result:
Priority: P1
Expected Results
The following regex should output the string value after the literal sting defined in the regex: For example the output should be as follows:
P1
Actual Results
Following is the output from the regex
Priority: P1
Workaround
Instead of extracting the value from Sync, use Jira automation - https://support.atlassian.com/jira/kb/extract-content-out-of-description-and-summary-with-regex-and-automation/