Forums

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

Create a query for mulitple labels, such that second label is not known

Nitin Gupta
Contributor
February 20, 2018

I want to create a query such that if the ticket has multiple label, then it should appear in the query.

e.g.

I have 10 labels (L1, L2 ... L10), and if I raise a query to check such that which all tickets have any of the two labels marked, how shall I do that?

1 answer

0 votes
Fabrizio Galletti
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2018

You need 2 specific out of these 10 or only more then one?

Nitin Gupta
Contributor
February 20, 2018

Need to identify which all tickets have more than 2 labels associated?

Labels are not specific

Fabrizio Galletti
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2018

Ok, 

You can create a new custom field that store "mylabelcounter".

This kind of field can be created using custom plugin like Jira Misc   or Script runner.

With MISC: here an example

With Script Runner: here an example

this solution is based on counting values and store it on a different field, then you can use a normal jql like

project = "XXX" and mylabelcounter >= 2

 

Nitin Gupta
Contributor
February 21, 2018

I  am not sure how to use the JAR file downloaded from Jira Misc

Can you shed some light on that as well?

Fabrizio Galletti
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2018

Wait man! :D 

Which Jira version do you have? Cloud or Server? Do you know about plugin and can you access to the jira administration panel?

Nitin Gupta
Contributor
February 21, 2018

I have a server but I am not the adming, I do not have access to the admin panel.

Fabrizio Galletti
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2018

Then you have to ask your administrator 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events