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?
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.