The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
I want to use ~ (CONTAIN) JQL operator in my JIRA query on Label field to search for any label, that contains specific phrase.
AND labels ~ 'ServiceNow'
Is it possible ? Thanks
I think "contains" is misleading in the name of the function, it's more "like" than "contains". The English version of your query is closer to "and there is a label like 'ServiceNow'"
But the answer is a simple "no". ~ searches for text in text fields. Labels are a set of fixed terms, a select list rather than text.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you try what you have in your question? Did it work? If not, what was wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Nic Brough _Adaptavist_ replied to me and it explained the issue I have. Yes I tried, and syntax did not work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As you're on Jira Cloud, the correct answer is to get an app that provides JQL extensions you're looking for.
With standard JQL, you can only get a list of issues and export them to Excel for further processing. This works if you want to do a one-off analysis. If your use case is more dynamic than that, look beyond standard Jira.
Standard JQL doesn't easily allow it, but you can quickly find the results using our professional indexing service JQL Search Extensions
Using this query will show any issue that contains a specific phrase in the label field:
issue in wildcardMatch("labels", “*ServiceNow*”)
Check out the documentation for more examples.
I hope this helps!
Maurício
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.