I have a custom field that contains free text and can be searched with the LIKE operator. This works fine in the advanced search: myField ~ "some word". However the basic search is generating JQL with an equals operator. For example: myField = "some word".
How/where do I configure a basic search component to generate JQL with a LIKE instead of an EQUAL operator?
Sorry, didn't make it clear enough that I was struggling through the code trying to implement functionallity. I found the answer, you need to override and generate new clauses in AbstractCustomFieldSearchInputTransformer.getClauseFromParams(). A good example can be found in Atlassians source code in NumberRangeCustomFieldSearchInputTransformer.java.
Thanks again for taking the time.
You can use "*" or "?" symbols for both the basic search and the advanced search:
myField ~ "some word*"
More information: https://confluence.atlassian.com/display/JIRA/Performing+Text+Searches
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Philip, which JIRA version do you have? In the version 5.2 that's working like that. You can select the custom field and indicate the words, then change to Advance View and there shows the ~ operator.
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.