Cannot bulk create the issue through API

Tibor Kocik March 12, 2021

Hello there,

 

I am using an API to create an issues in BULK. Everything worked properly when I used my personal JIRA but when I wanted to use my customers JIRA I got some errors, which I cannot resolve.

I am using the following request in POSTMAN

{
"issueUpdates": [
{
"update": {},
"fields": {
"summary": "summary",
"issuetype": {
"name": "Test"
},
"project": {
"id": some-id
},
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Test From the API project. Test is called 'summary'",
"type": "text"
}
]
}
]
},
"reporter": {
"id": "id"
},
"assignee": {
"id": "id"
},
"labels": [
"test",
"API"
]
}
}
]
}

 

As an authorization I use Basic token, which works properly (tested it on another query).

 

As a result I get the following error

 

{
"issues": [],
"errors": [
{
"status": 400,
"elementErrors": {
"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.",
"reporter": "Field 'reporter' cannot be set. It is not on the appropriate screen, or unknown.",
"assignee": "Field 'assignee' cannot be set. It is not on the appropriate screen, or unknown.",
"labels": "Field 'labels' cannot be set. It is not on the appropriate screen, or unknown."
}
},
"failedElementNumber": 0
}
]
}

 

I use this endpoint

https://myJira.atlassian.net/rest/api/3/issue/bulk

I checked the manual creation of the issue on the customers JIRA and I can see every field which is "unknown" and I have the privileges to create an issue.

 

Can you please help me with this issue?

1 answer

1 accepted

1 vote
Answer accepted
Bill Sheboy
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.
March 12, 2021

Hi @Tibor Kocik  -- Welcome to the Atlassian Community!

For a question like this, you may want to look in the Developer Community.  There appear to be some posts there about the symptom you describe:

https://community.developer.atlassian.com/search?q=%22Field%20%27summary%27%20cannot%20be%20set.%20It%20is%20not%20on%20the%20appropriate%20screen%2C%20or%20unknown.%22

Best regards,

Bill

Suggest an answer

Log in or Sign up to answer