Problem
The custom fields AffectedVersions, FixVersions, and FixVersionsReleaseDate don't seem to work in Javascript, JQL or other operations.
Cause
This happens because these custom fields return the actual values including format characters and this breaks the execution of the operations.
Solution
Use the following fields mappings respectively AffectedVersionsList, FixVersionsList or FixVersionsReleaseDateList