Whenever I try to create labels for a new issue (either when I'm creating it or after it's been created) I receive a 400 Bad Request response from the server and the following body:
{ "errorMessages": [], "errors": { "labels": "Field 'labels' cannot be set. It is not on the appropriate screen, or unknown." } }
Here's an example of how I'm attempting to add the label with a PUT request:
{ "update": { "labels": [ {"add": "automated"} ] } }
Again, I'm able to create issues just fine - and the labels field is displayed when attempting to create an issue through JIRA normally, so I'm sort of at a loss for why this could be happening.
Try creating the issue via the UI with the user which is being used to auth. "Field 'labels' cannot be set. It is not on the appropriate screen, or unknown." is a pretty clear error, and you need to address why the user essentially does not see the field.
I agree that it is a clear error, but when I try to create the issue from the UI the labels field is clearly visible. I've attached a screenshot. This is the same user, same project, etc. If I send a GET request to the issue/createmeta and expand the fields for this project, I also see labels as valid. However, when I send the request either alongside the rest of the data to create the issue or update it after creation, I receive the above error. Can you think of anything else I should check?
labelcap.png
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you provide any more information? I am not having the same issue when I try the above string as the JSON request.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.