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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Querying for a partial match in a multi-select custom field in JIRA Edited

I have a multi-select custom field (Let's call it MSCField) in all issues in my JIRA project and I want to be able to create a JQL query that returns all issues where the selected value in that custom field contains a particular string.

For example, if the possible selectable values in MSCField are:

A111, A222, A333, B111, B222, B333

...I want to create a query that returns all issues where the selected value in the MSCField contain the letter A. So it will return all issues where the selected value is A111 or A222 or A333. But it will not return issues where the selected value is B111, B222 or B333.

I have tried using things like:

"MSCField" IN "A"

"MSCField" ~ "A"

"MSCField" = "A*"

and none of them work.

Can anyone help me out here?

In case relevant, I've been told that a more specific name for the type of custom field I have here is "Select List (single choice".

1 answer

As far as I know bare Jira does't allow that.

But you can try ScriptRunner plugin which expands Jira search functionality and alows seraches based on Regular Expressions:

https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_regular_expressions

Apparently this method is only working on some Jira fields like Summary or Description but is not working on most custom fields.


@Ben Marsh - is using Groovy (in ScriptRunner's Script Console) or using Python (to search via JIRA REST API) and option for you? I think with those methods (search + data processing) you would be able to generate list of matching issues (I suspect Groovy working on Jira backend will search faster).

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Events near you