Searching for parts of a URL in JIRA is basically broken?

JHC February 19, 2018

If I have a ticket with a few urls I feel like searching for "security" should bring back issues, it doesn't work at all.  I get word stems is a problem, but make an exception for a common case.   This is a pretty fabulously broken bit of JIRA "search"

Issue1

Description: http://redhat/security/bad

Issue2

http://redhat/security/something


Issue3

http://debian/security/something

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 21, 2018

Jira's JQL can't perform searches for fragments of words.  Instead Jira has to search for whole words.  This is a known limitation explained in https://confluence.atlassian.com/jiracoreserver073/search-syntax-for-text-fields-861257223.html#Searchsyntaxfortextfields-Wholewordsonly

In this case, since the word 'security' is being encapsulated between other characters (and not spaces), Jira won't be able to separate this specific word in that URL for the purpose of searching via native JQL.  Instead when Jira is indexing text like this the entire URL is treated as a single word.

However I think there might be a way to get around this with the use of a plugin for Jira.  For example, I believe that the Scriptrunner plugin will allow you to use regex searches of specific issue fields in Jira per https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_regular_expressions

If you had this plugin with Jira, I believe you could then do an advanced search in Jira such as

issueFunction in issueFieldMatch("", "description", "security")

which I believe will then be able to help find issues that contain that specific substring of characters in their descriptions.

Of course there might exist other plugins in Marketplace that could help here as well.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events