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

This widget could not be displayed.

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

This widget could not be displayed.
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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

196 views 3 0
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