When i tried to create a new issue with issue type "Bug" using screen/page, then it is allowed to select value for affects versions but when i tried to the same with REST API then following error message is displayed.
{"errorMessages":[],"errors":{"affectsVersions":"Field 'affectsVersions' cannot be set. It is not on the appropriate screen, or unknown."}}
How can i add value(s) for affects versions field while creating an issue using REST API ?