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
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
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.
For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events