I want to find issues that have a label that ends in either GoLive or Tier1. Issues will have labels like:
- XYZGoLive
- XYZGoLiveTriage
- ABCTier1
- ABCTier1Stuff
I only want issues 1 and 3 back. Issues can have multiple labels as long as one is ending in GoLive or Tier1.
We have scriptrunner and I tried
(issueFunction in issueFieldExactMatch('project in (myproject)', labels, '.*GoLive') or issueFunction in issueFieldExactMatch('project in (myproject)', labels, '.*Tier1'))
But this returns all 4 of the above.
I then added the $ at the end, but not it doesn't return any issues.
(issueFunction in issueFieldExactMatch('project in (myproject)', labels, '.*GoLive$') or issueFunction in issueFieldExactMatch('project in (Smyproject)', labels, '.*Tier1$'))
I've also tried with issueFieldMatch (instead of ExactMatch) but get the same results
Thanks