In JIRA's interface, I can search for an exact string for fields such as summary, comment, or description using JQL such as:
summary ~ "\"Some exact search string\""
However, I can't seem to get that kind of exact search quoting to work through the rest API.
In my case, I'm calling curl from within ruby:
# Example code class JIRA def find_by_summary(exact_query) `curl "https://#{username}:#{password}@jira.mydomain.com/rest/api/2/search?jql=summary~'#{exact_query}'"` end end
I can't seem to get a URL to work with any type of quote or escaped quote within the "summary~'#{exact_query}'" portion of the code. Does anyone have any suggestions on how to format a curl call that will allow exact phrase matching JQL in the API query?
Thanks,
Chad
Community moderators have prevented the ability to post new answers.
Hi Jaikumar, Unfortunately we did not. Since this wasn't part of any critical tool, we opted just to pull whatever issues the non-quoted query retrieved and then filter them in ruby. Terrible hack, I know, but not important enough to dig any further in for us. That being said, if you do find a way, I'd love to hear about it. Best of luck!
Chad Molendra, I'm also facing the same issue, did you figured out any solution for this problem?
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.