I am trying to create a query to find Jira issues in a project that include the Comment text "Ready for UAT" but exclude the Comment text "UAT done".
In other words, if Comments in an issue only include the phrase "Ready for UAT" then display that issue in the results. However if the Comments in an issue include both "Ready for UAT" and "UAT done", then exclude that issue from the results.
I've tried various combos of ~ and !~, AND and NOT, etc. but nothing succeeds so far.
For example,
project = ABCD AND Comment ~"Ready for UAT" AND Comment !~ "UAT Done"
does not succeed. It still shows results that include both phrases.
Any suggestions?