I was wondering if when doing a filter in the jira query system you can add ways to filter for issues. for example I have a custom field which is a number (totally random number) that I would like to be able to sort by null or not null but jira only lets me search by the exact figure. Another thing I would like is if we could search by contains. for example if the data was a 10 digit number and we wanted to search by lets say 4 numbers and type those four numbers in and click contains to get all possible results.
THANKS!
jon
Hi Jon,
This article may help you:
https://confluence.atlassian.com/jiracoreserver073/search-syntax-for-text-fields-861257223.html
Actually, while I was thinking of wildcards, the number fields don't support them in JIRA (they only support =, >, <, >= and <= operators). Does this custom field need to be a number, or could it be a string? (CONTAINS (~) works on text fields.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
actually the field is a free text. for example the issue has a field of "EBKG00079437" and my staff would usually search for it by the last 3 or 4 digits. I tried "*437", *437, and 437* but don't get any result. any other ideas?
thanks
jon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you try the CONTAINS operator(~)?
Carlos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'd try without quotes: "Booking No." ~ 437
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
see below, here is my issue page. I'm trying to search for booking by using the last 4 digits. I have added one of the custom field filters and trying to search for booking ending in 3500 but nothing comes up. how exactly would you do it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jon, sorry for the late reply. Thanks for the picture. We can try wildcards with the limitation that they are not supported at the beginning of the string. Does the Booking number always start with the same character (or group of characters)? If not, do you know at least what the first character is for the items you're searching? If yes, can you try "Booking No." ~ "RICU*437*" (I'm assuming that the first characters are RICU). Let me know if that works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It does not work exactly. the prefix works, but the later half does not filter, instead it shows all results still even if it shouldn't. I also tried ricu*600* and "ricu*600*" which gave no result or same results. I saw in the article you sent ricu*600 should work but instead it pulls everything.. I have cloud verion does that matter?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jon, sorry it took so lon (I'm in the middle of moving to a new house and it's taking forever...). I'll experiment myself a little bit later but I was curious if something like what's reported in this bug may be affecting you: https://jira.atlassian.com/browse/JRASERVER-6187?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&showAll=true
Are you using JIRA Server (and if so, what version?) or Cloud?
Thanks,
Carlos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Disregard my question, I know you're using the Cloud instance from a previous comment. I do think something is not right in the way JIRA is running the search. I also found a number of other issues from other people reporting issues when running queries with wildcard or the contains operator. Maybe this issue is related: https://jira.atlassian.com/browse/JRACLOUD-67967.
Do you have Script Runner? I believe with Script Runner you can use regex.
Carlos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.