Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use Jira's URL search magic for issuetypes containing whitespaces?

mmquasar
Contributor
April 29, 2020

Hi all,

I have setup a custom search engine in my Chromium based browser which can be accessed in the URL search field using a special character, here 'j'.

Custom search engine: https://<redacted server URL>/jira/secure/QuickSearch.jspa?searchString=%s

The %s takes all whitespace separated parameters from the URL search field and some smart Jira mechanism tries to interprete and map them to existing structures.

Example for Jira project "Demoproject":

URL search field: "j demoproject story searchtext"

Result: Search results show all items of issuetype 'Story" in the project 'Demoproject" having a text like "searchtext" >> Great!

Some questions still remain:

  1. Is this behaviour part of what is generally called "Quick search"?
  2. Where can I find documentation about how Jira interpretes such query parameters?
  3. *Main question* How can I accomplish the same behaviour in case the issuetype contains a whitespace (e.g. "Test Plan" when using Xray)?

Thanks in advance

1 answer

0 votes
Michael Wohlgemuth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 29, 2020

Greetings,

im struggeling to understand what it is you implemented, but have you considered using JQL for your queries? From what i understand, that would be much easier.

Here would be an example query URL when using the "normal" search (not quicksearch). Maybe it helps you in some way:

https://your.server.com/issues/?jql=project%20%3D%20demoproject%20and%20issuetype%20%3D%20%22Your%20Issue%20Type%20With%20Whitespace%22

regards

mmquasar
Contributor
May 1, 2020

Hi Michael thanks for you reply.

I'm just trying to understand how Jira resolves query parameters coming from the browser's address bar. So, it's not about JQL in the first place.

Right now typing

"j <Jira project key> <issuetype> <searchtext>"

in the URL address bar works when the issuetype does not contain a whitespace e.g. "story". I can't figure it out for e.g. "Test Plan".

Basically it's about minimizing typing efforts to jump right into the results of the JQL query Jira is doing for me afterwards.

Suggest an answer

Log in or Sign up to answer