How to make a search for X different values on a custom field?

Hi,

I'm trying to make a search on all my issues for those that contain "ID12345" or "ID54321" or "IDXXXXX" on the custom field "my ID". From what I read it should be:

project = XPTO and "my ID" ~ "ID12345 ID54321 IDXXXXX"

I don't get any error but I also don't get any results. What am I doing wrong?

 

I'm using JIRA v6.3.5

2 answers

1 accepted

If you're searching for the text values you have to use "text search". You can use OR operators, but you have to use them INSIDE the quote. And the "OR" operator must be written in capital letters:

project = XPTO and "my ID" ~ "ID12345 OR ID54321 OR IDXXXXX"

There is much more valuable info here:

https://confluence.atlassian.com/display/JIRA/Performing+Text+Searches

Mastering the text searches will make you definitely an "above average" user wink

Try this instead

project = XPTO AND ("my ID" ~ "ID12345" OR "my ID" ~ "ID54321" OR "my ID" ~ "IDXXXXX")

That would work on this case, but what if I want to search for 30+ IDs?

How about using IN? That might work too: "my ID" IN (id1,id2,id3...)

I get this error: The operator 'in' is not supported by the 'my ID' field.

Bummer. Text fields support ~ operator but not IN. Unfortunately I'm not aware of another solution.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,268 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot