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.
Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
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