Hi all,
I am trying to include an "If" block in my automation to check whether a custom field (Text Field (single line)) starts with any of those strings:
Advanced compare condition
{{issue.customfield_10028}}
exactly matches regular expression
/^000|^ABC|^DEF|^HIJ|^KLM|^NOP|^QRS|^TUV/i
Somehow this never passes although the value in my customfield is e.g. ABC123Z34D.
Note: this match should be case insensitive which I think is covered by /i
What am I missing here?
Thanks for your help!
What is the exact value of the custom field you are trying to use this for?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have now tried various combinations but none of them seem to work.
One issue came in with
customfield_10028 "0006ABCD"
so ^000 should have been a match but didnt.
I also changed the condition from "matches exactly" to "contains regular expression" but this does not make difference either.
I'm a bit lost to be honest :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm, I'm using a "matches regex exactly.".
I did find an issue with casing, but when I amended it to this regex I didn't run into any more casing issues.
(?i)(^000|^ABC|^DEF|^HIJ|^KLM|^NOP|^QRS|^TUV).*
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.