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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,897 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot