Field 'affectsVersions' cannot be set. It is not on the appropriate screen, or unknown.

Test User June 10, 2016

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 ?

2 answers

0 votes
Petar Petrov (Appfire)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 10, 2016

The id of the field is actually "versions" - try using that instead.

You can get the ids of all fields in the system (both system and custom) by doing a GET on /rest/api/2/field.

0 votes
Abhishek Kumar June 10, 2016

All JIRA views are linked to a screen.

You need to go to the respective screen from Administration -> Screens

then add filed "Affected Version" to the screen and click save.

You can se the field now on your page.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events