I always getting these error when try to create issue via REST API
Field 'Summary' cannot be set. It is not on the appropriate screen, or unknown.
Is this REST API can be use on FREE plan users ?
I've check the permissions for the user and all seems ok.
The user has administrator level for that project.
May I know what I'm missing here ?
Could you maybe share your REST payload? Maybe something is wrong there.
The error message isn't always that accurate. You can get this specific one too if you just cannot see the field or if you are somehow trying to access the wrong issue type/project
Sure @Dirk Ronsmans ,
Here is my JSON raw data send to create the issue
{
"fields": {
"Summary": "TEST REST API",
"issuetype": {
"name": "Task"
},
"project": {
"key": "OPS2021"
}
}
}
and here is the response result
{
"errorMessages": [],
"errors": {
"Summary": "Field 'Summary' cannot be set. It is not on the appropriate screen, or unknown."
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @ARCode ,
Could you try it by changing the case of the word summary to all lowercase?
I do believe it is case sensitive and Summary is not the same as summary
So:
{
"fields":{
"summary": "TEST REST API",
"issuetype": {
"name": "Task"
},
"project":{
"key": "OPS2021"
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you still get the exact same error message?
The API doesn't need specific permissions it requires the same permissions as if you were to create a ticket manually thru the UI.
So if your administrator account can create an issue in the project manually then it should also be able to do so thru the API
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, @Dirk Ronsmans , I'm afraid I still getting the same errors, do you have another suggestions ?
I have set another field as required fields, but in my RAW data, I just post "summary" field value, is can be cause the problem ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
well that would give you a problem yes but the error would be different imho.
You could try a few things:
a create issue is often the trickiest one that there is (besides maybe an update) so it would be easier to take this step by step and troubleshoot each action.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the answer, I've check over and over again on my screens settings, the summary field is in there .. You can see my screen capture.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.