We have several labels on issues in my project.
E.g. A, B, C, D, ...
I want to find the issues that have label A and only label A.
That is, I dont want to find any issues having A + another label. Just the ones with A only.
And I dont want to list all other possible labels and exclude them, as in the following query. ( labels=A and labels not in (B,C,D...) )
This is not a good solution when there are a huge amount of other labels.
Off the shelf, you can't do it.
It is possible with code, and I've seen two approaches before
1. A field that counts labels - your query becomes "labels = A and 'count of labels' = 1"
2. A JQL function - your query becomes "labels = A and labelCount() = 1"
Both of these are really easy to implement if you've got ScriptRunner installed, I've done the field one with my own code and SR, and seen SR create the function as well.
I am now trying to use:
issueFunction in issueFieldMatch("", "labels", "^A$")
but that doesnt work... Give no matches at all.
If I instead have:
issueFunction in issueFieldMatch("", "labels", "A")
ist find all issues with label A but also the issues with several labels.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...
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
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs