What would the URL look like to do a fuzzy search on the summary field for a phrase?

I am trying to do a phrase fuzzy search on summary the field of the issue using the REST API. What would the URL look like?

I would like to look for the phrase "Rest Test"

I am successful when I do the following: https://myserver/rest/api/2/search?jql=summary~Rest

but fail when I try to add to the phrase.

Update:

I need to be able to find the exact phrase "Rest Test".

according to the documentation I need to surround the phrase with quotes. What would the URL need to look like?

1 answer

Hi,

Try encoding the " (%22) characters around the phrase.

http://<myserver>/rest/api/2/search?jql=summary~%22Rest~Test%22

If you have spaces encode those with %20.

Your search term did not have the ~ operator to cause the fuzzy search.

https://confluence.atlassian.com/display/JIRA/Performing+Text+Searches

If you meant something different or I misunderstood what you wanted then please explain alittle better with example data.

Update:

I need to be able to find the exact phrase "Rest Test".

according to the documentation I need to surround the phrase with quotes. What would the URL need to look like?

I am not seeing any problems with phrase search. My search returned two records which is the correct result. What type of results are you getting? What are the permissions of the user you authenticated with? I am using an adminstrator account in my testcase shown here.

http://<myserver>/rest/api/2/search?jql=summary~%22natural%20language%22

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,711 views 17 21
Read article

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