Can anyone tell me how I can search for all labels containing a certain word?
labels = "word*" brings no result
labels ~ "word*" brings massage "is not supported by the field labels"
I want to be able to build filters for groups of labels, i.e. "linux-*", "macos* etc.
issueFieldExactMatch (subquery, fieldname, regexp)
Here's an example for searching labels:
issueFunction in issueFieldMatch("reporter = fred", "labels", "ie[8|9]")
This will locate my labels "ie8" and "ie9" but not give matches against "ie7" or "review" (etc)
can this issueFunction be used for identifying issues with labels starting with a specifies string "c/"?
I am using query
issueFunction in issueFieldMatch("", labels, "c/.*")
but I also get results where labels dont start with but only include the required string (e.g. "asc/something")
Can you please advise?
TLDR: Try '\\bc/.*' Use 'word boundaries' rather than 'start of line'. Following up on Mark's comment, the workaround is to use the word boundary pattern rather than the 'start of line/input' pattern. The labels field is treated as a string containing the list's elements, which is why the start of line pattern isn't matching what you'd hope. See here for more useful patterns: https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
You can see how to use wild cards in JIRA in this page, however, I believe this will only work if the JIRA Indexing Language is set to other due to word stemming. You can see more about this in this other thread. If possible, try to set the indexing language to 'Other' in the General Configuration and re-index JIRA. Then, try to use wildcards again.
I hope this helps! :)
I could really use wirdcards too and the above suggestion didn't help me either. I've been using labels (tags) on other sites like Delicious and Flickr for many years and have developed a basic hierarchy to my tags. E.g. Actor:PM, Actor:Client, Value:Client_Engagement etc. I want to be able to search for all labels that start "X:" but without a wildcard that seems impossible in Jira.
I could really use this too! I just assumed I could use wildcards on labels but was disappointed to find it didn't work. I guess I can create an 'or' query that matches all the known label forms that the regex would match. I'll have to update it whenever a new label is created, but it's better than nothing...
My solution is derivative of Mark's above, and is the only solution I could find. However, in order to implement this, I have modified this so it can be understood by people who do not understand regular expressions. This exactly solves the question asked.
issueFunction in issueFieldMatch("project = foo", labels, "(matchonexactlythis)")
First part: I am performing a JQL query for my entire project (in this example, the project is named foo).
Second part: I am searching for labels
Third part: I am using a regular expression that reads to look for what is between the parenthesis, regardless of anything else.
This will find labels named matchonexactlythis, ionlywantomatchonexactlythis, and matchonexactlythisplease, within the foo project.
To use this JQL query, copy and paste it in. Update the first part with as generic or specific a query as you want. Update the third part, between the parenthesis with the word you are searching for.
Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG