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
Viasat Inc.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.