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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

475 views 1 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