-
Type:
Suggestion
-
Resolution: Low Engagement
-
Component/s: Assets - Automation
Suggested Solution:
Improve the supported REGEX within the match() function to include negative lookahead REGEX
To replicate:
Create a match function utilizing negative lookahead REGEX e.g:
.match("[\s\S]?(?=TestString)"
this will fail however this is valid REGEX when testing within REGEX testing tools/playground.
Why is this important:
Provide increased functionality for REGEX within automation for JIRA.
Workaround:
Utilize any of the following automation functions:
remove(String remove)
Removes characters from text.
{{issue.summary.remove("l")}} -> Heo Word!
For more information, see: StringUtils.remove(String).
substringBefore(String separator)
Returns the text before the first occurrence of the given separator.
{{issue.summary.substringBefore("W")}} -> Hello
More info on StringUtils. substringBefore(String)
substringBeforeLast(String separator)
Returns the text before the last occurrence of the given separator.
{{issue.summary.substringBeforeLast("o")}} -> Hello W
More info on StringUtils. substringBeforeLast(String)