YouTrack Query Question | Exclude text strings
Hello,
I need help on how to exclude certain text strings in the You Track search results. Essentially, I want to return anything with a {Release Stage: Development OR Stage: Develop} but exclude anything with the text string of ‘%Test]’ or ‘%Tests]’ appearing in the Summary attribute.
Here is the query Im using: (Release Stage: Development OR Stage: Develop) AND (summary: -'%Test]' and summary: -'%Tests])
What am I doing incorrectly?
Please sign in to leave a comment.
Hi Greg Granger,
Summary search is always executed as text search which is catered towards searching for words and phrases. It looks like the issue is that the part of the summary you specified in the search query is not technically a word.
Can you please show the search results you get and highlight the summaries you don't want to appear in the search results?
Hi Julia,
Thank you for the message! Here is a screen shot of the query, along with the results. Notice how the first two entries in the query results contain “Test” in the ticket summary? Id like those excluded:
That screen shot is coming thru awful on the post. Julia, is that image legible?
The screenshot looks just right when opened in a new tab, thank you for sharing it!
As I can see, “Test” is indeed not used as a standalone word in either of the summaries. So, I'd recommend excluding the exact term
'IntegrationTests'
.