I'm trying to use the issueFieldMatch regex and the results are not as expected. I have issues with labels "COMMITTED" and "UNCOMMITTED". If I use: issueFunction in issueFieldMatch("project=TEST", labels, 'COMMITTED'), it returns the issues with both "COMMITTED" and "UNCOMMITTED" (as expected for searching anywhere in the string). However, if I use: issueFunction in issueFieldMatch("project=TEST", labels, '^COMMITTED$') then it returns no results.
I cannot find any regex pattern that will return an exact match to "COMMITTED" and exclude the "UNCOMMITTED". ^*COMMITTED returns the UNCOMMITTED and COMMITTED. Negative lookahead doesn't seem to work - i.e. ^*(?!UNCOMMITTED)COMMITTED* returns UNCOMMITTED and COMMITTED. ^(?!UNCOMMITTED)COMMITTED* returns nothing.
I have a more complex query expression that I want to replace "project=TEST", but I need the regex to work first.