project = MATA AND issuetype = Test AND labels = E2E OR labels = Quarantined OR labels = P1 OR labels = P2 or labels = P3
I want this query to only include tickets that have all E2E, P1, P2, P3 and Quarantine. When i run this it breaks it out so I get ticket that have P1 but not Quarantine and other combinations. Is there such a query?
Thomas
Try this:
project = MATA AND issuetype = Test AND labels IN (E2E, Quarantined, P1, P2, P3)
Thanks but that one does not work. It brings back some that have E2E and P2 but not Quarantine. I need all 5. But It did put me in the right direction. I might be able work with the data.
Thanks
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That query will bring back any issues that have at least one of those 5 labels set. Is that what you are looking for? Or do you want specific combinations?
Also, I notice that you refer to label as Quarantine, but your query has Quarantined
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am looking for the combination of all 5. The label is Quarantined, my bad.
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You mean you want issues that have all five labels? If that is the case you need the query that Jack supplied in the previous answer, with AND statements for all labels.
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.
Hi Thomas,
I believe you have to change the OR operator and use AND instead.
project = MATA AND issuetype = Test AND labels = E2E AND labels = Quarantined AND labels = P1 AND labels = P2 AND labels = P3
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That kind of worked. The search comes back empty but if I do this.
project = MATA AND issuetype = Test AND labels = E2E AND labels = Quarantined AND labels = P1
It will work but when I add the last P2 or P3 the search comes back empty.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And.. is there an issue with all the labels sets? if so, try to perform a reindex before to run again the query.
See Search indexing for further reference.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.