Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Report to filter all tickets with more than one value in a custom field

Jay Rajaram May 6, 2021

We have a custom field which is a multi select dropdown.

I want to report on all the tickets that have got more than one value in that field

Can anyone please assist in a JQL script for it please

2 answers

2 accepted

1 vote
Answer accepted
Joseph Chung Yin
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 6, 2021

@Jay Rajaram -

You will need to create a "scripted field" by using Scriptrunner for Jira add-on - https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?hosting=cloud&tab=overview

The scripted field essentially detect the size (number of options selected) for your multi-select field.  The drawback is that you will need to create another custom field in your system/project.

Afterward you can access the scripted field in JQL.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

0 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 7, 2021

JQL doesn't have a "count options" or "size" function built in, so you'll have to use an app to provide one.

Joseph has given you one very good way to do it, but you could also use Scriptrunner to create a JQL function that can look at the number of options in a field on an issue.  I slightly prefer the scripted field though, because you can expose it in reports and sort on it in the issue navigator as well as base searches on it.

Suggest an answer

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

Atlassian Community Events