Rally API query with & in the value
search cancel

Rally API query with & in the value

book

Article ID: 257221

calendar_today

Updated On:

Products

Rally SaaS Rally On-Premise

Issue/Introduction

When querying for an attribute where the name contains an ampersand (&), the API returns an error. 

For example, given the following query:

(Name = "O&M")

The following error is returned by WSAPI

Could not parse: Cannot parse expression "(Name = "O" as a query"

Resolution

In order to query for a name attribute that contains an & you have to pre-transform it to a URL encoded character of %26

Using the above query example, change O&M to O%26M as shown below

(Name = "O%26M")