It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Field 'summary' cannot be set - Create Issue API - JIRA Cloud

I am currently struggling to get around an issue I am encountering when trying to create using the API on Postman, I am relatively new to this side but when I try to send I am receiving;

"reporter": "Field 'Summary' cannot be set. It is not on the appropriate screen, or unknown."

After having a look around I believe this is potentially an issue with the authentication and permissions to be able to create the issue rather than the summary not being on the appropriate screen as Summary is on both the create/edit/view screen of what I am trying to create.

Any assistance would be greatly appreciated

2 answers

0 votes
DPK_J Community Leader Sep 16, 2019

@Steven LloydCan you please give full request and response sample, like error code and full json response.

Also try using 'summary' instead of 'Summary'.

Hi,

So I used;

{
"fields": {
"project":
{
"key": "JIR"
},
"summary": "testing.",
"description": "new",
"issuetype": {
"name": "Test"
}
}
}

 

And received the below

{ "errorMessages": [], "errors": { "summary": "Field 'summary' cannot be set. It is not on the appropriate screen, or unknown.", "description": "Field 'description' cannot be set. It is not on the appropriate screen, or unknown." }}

DPK_J Community Leader Sep 16, 2019

I tried same with curl on my instance and this worked I am adding curl code. Check if this works.

curl --request POST \
--url 'https://<SITE_URL>/rest/api/3/issue' \
--user '<EMAIL_ID>:<API_TOKEN>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"fields": {
"project": {
"key": "<PROJECT_KEY>"
},
"summary": "Sample issue summary",
"issuetype": {
"name": "<ISSUE_TYPE_NAME>"
},
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "description",
"type": "text"
}
]
}
]
}
}
}'

 

Please replace <SITE_URL>, <EMAIL_ID>, <API_TOKEN>, <PROJECT_KEY>, and <ISSUE_TYPE_NAME> with appropriate values.

0 votes
Warren Community Leader Sep 16, 2019

Hi @Steven Lloyd 

I would recommend doing a simple pull of data in Postman to know that your authentication is working before you try to set data. So try something like 

rest/api/2/issue/ABC-123

replace ABC-123 with a key that you know exists and you have access to.

If that works then you should be better placed to try a POST

Hi Warren,

Thank you for your response, 

If i understand correctly I used as the above with the replaced key from my JIRA and received;

 

{ "errorMessages": [ "Issue does not exist or you do not have permission to see it." ], "errors": {}}

Cheers for getting back Warren, it was an authentication error managed to sort it after sitting at the screen banging my head for several hours

Shane J I'm New Here Dec 09, 2019

Steven can you share what you did to fix it?

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you