Reputation: 658
When using the REST API, with a POST to /rest/api/2/search and using an ampersand in the search criteria of the JQL, i.e. "component = \"Research & Architecture\" "
I get the following error.
"The value 'Research %26 Architecture' does not exist for the field 'component'."
Is there a way to use the REST api without the values being encoded?
I am using postman as a client directly to the Jira REST API. I have also used a nodejs client npm package jira-connector, with the same results.
Upvotes: 1
Views: 710
Reputation: 16778
I was able to use the JQL Search REST API to search for issues with a component containing an ampersand by encoding the &
character as %26
:
https://jira-url/rest/api/2/search/?jql=component='Research %26 Architecture'
This is one solution in case you can't find a way to avoid the values being encoded.
Upvotes: 1