Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Quantity values of labels

Olexandr Babych January 22, 2024

Hello, i have some question about field LABELS

I need find tasks where filed include only one value of labels 
i have some tasks which have some value of labels 

For example: 
Task1-->Labels (aaa,bbb,xxx,fff)
Task2 -->labels (sss,aaa)
Task3--->Labels (aaa,bbb,)
Task4--->Labels(bbb,fff,aaa)
.....
Task5943--->Labels(aaa)

Me need task where filed labels include only one value. 

Variant if labels != (aaa,bbb,fff....) i can`t use because i have to many field in other projects 

1 answer

0 votes
Trudy Claspill
Community Champion
January 23, 2024

Hello @Olexandr Babych 

With the example data you provided, do you mean you want the result set to include only Task5943 because that has just one value in the Labels field?

Does it matter what the value is, or does it matter that there is only one value regardless of the exact value?

Olexandr Babych January 24, 2024

Yes it does matter. Me need all tasks where have only for example: Task5943--->Labels(aaa) 

Trudy Claspill
Community Champion
January 24, 2024

So you want to be able to search for Labels="aaa", and get the issues that have only one value in Labels and that value is specifically "aaa". You are not wanting to do a filter that gets issues based on the Labels count=1, which would get all issues with only one label value, but that value might be "aaa" or "bbb" or "ccc".

Is that correct?

Olexandr Babych January 24, 2024

yes, only way that i know it`s 
Labeles = aaa and labels !=bbb and labels !=ccc..... 
but I have too many other labels to list them all.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events