Response is: {"errorMessages":[],"errors":{"Affects Version/s":"Field 'Affects Version/s' cannot be set. It is not on the appropriate screen, or unknown."}}
Does anyone who know about this? The value exists in the project.
Hi @Jason Liu
The respective field should be on the screen to add the value via API. Please check
Thanks,Pramodh
Hi Pramodh, What if they are the same? Is there any other possible reason?
This is what it says it is - if you go into the UI and try "create issue", you will find that the affects version field is not asked for.
Either remove it from your REST call, or add it to the create screen so it can be filled in.
(There is one other way to get this message - it might be that the user account you are using to make the call does not have permission to see or create issues in thsy project.
Hi NIc, Yes, I understood. What I meant is that we already have Affects Version/s field on the create screen and we tried to create it in Jira and it succeeded. But when we call API, it always showed the error message. I also checked the user's access and she has the project create issue permission. So there's no other possible reason?
Can you log in as the user using the REST call, and try to create an issue of the same type that your REST call?
Are you offered the affects version field then? Also, if so, is it the first field on the screen (other than summary, issue type and project)?
(Basically, we need to check all the things it could be by trying it in the UI - are you sure you're using the same user for the REST call, same issue type so it should have the same fields, etc)
the affected version has drop down list in the jira screen while creating a ticket. In the java script when i give + "\"Affects Version/s\":{\"name\":\"values\"}," it gives error as Response is: {"errorMessages":[],"errors":{"Affects Version/s":"Field 'Affects Version/s' cannot be set. It is not on the appropriate screen, or unknown."}}
It looks like you're new here. Sign in or register to get started.