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

Accepted Answer
1 vote

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

1 vote
Peter Bengov Community Champion Jan 19, 2015

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?

Peter Bengov Community Champion Jan 19, 2015

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.

Peter Bengov Community Champion Jan 19, 2015

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

22,200 views 2 7
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