Forums

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

Label filtering

Jacob Giles February 6, 2019

 

Is it possible to create a filter on JIRA which would filter by the number of labels containing the same word. So different labels which share one common word. 

e.g. Tickets which have at least 2 labels containing the same word within the different labels 

 

1 answer

0 votes
Earl McCutcheon
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 8, 2019

Hello Jacob,

Natively there is not a method to count values in a field so you will need to look into add-ons.  I know you can do this with the add-on app Jira Misc Fields (JMCF) by creating a scripted number filed with the following expression:

issue.get("labels").size()

This would tally up the number of labels present on an issue.

Then for your JQL search you could use:

"Number of labels custom field name here" >= 2 AND labels in (example_lable_name)

I would bet that this is also possible with ScriptRunner with the .size() value in a scripted field  or possibly Power Scripts as well if you have either of these tools already, but I cannot confirm and do not have any examples off hand.

Regards,
Earl

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events