Home/Atlassian REST API reference
Jira and Confluence Cloud REST API
Bulk create Jira work items with the REST API
POST /rest/api/3/issue/bulk takes an issueUpdates array of up to 50 create bodies. The call answers 201 as soon as any element is created, and failed elements are listed in errors with failedElementNumber, so a 201 does not mean the whole batch worked.
Endpoints
| Method | Path | What it does |
|---|---|---|
POST | /rest/api/3/issue/bulk | Creates up to 50 work items or sub-tasks in one request. |
Examples
POST /rest/api/3/issue/bulk
Two elements, the second with an issue type that does not exist. One work item is created and the other is reported in errors.
curl
curl -X POST \
-u "you@example.com:$ATLASSIAN_API_TOKEN" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data '{
"issueUpdates": [
{
"fields": {
"project": {
"key": "WEB"
},
"issuetype": {
"name": "Task"
},
"summary": "Bulk example 1"
}
},
{
"fields": {
"project": {
"key": "WEB"
},
"issuetype": {
"name": "NoSuchType"
},
"summary": "Bulk example 2"
}
}
]
}' \
'https://your-domain.atlassian.net/rest/api/3/issue/bulk'Python (requests)
import os
import requests
EMAIL = "you@example.com"
r = requests.post(
'https://your-domain.atlassian.net/rest/api/3/issue/bulk',
auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
headers={'Accept': 'application/json'},
json={'issueUpdates': [{'fields': {'project': {'key': 'WEB'},
'issuetype': {'name': 'Task'},
'summary': 'Bulk example 1'}},
{'fields': {'project': {'key': 'WEB'},
'issuetype': {'name': 'NoSuchType'},
'summary': 'Bulk example 2'}}]},
)
print(r.status_code, r.text)Response: HTTP 201
{
"issues": [
{
"id": "10770",
"key": "WEB-59",
"self": "https://your-domain.atlassian.net/rest/api/3/issue/10770"
}
],
"errors": [
{
"status": 400,
"elementErrors": {
"errorMessages": [],
"errors": {
"issuetype": "Specify a valid issue type"
}
},
"failedElementNumber": 1
}
]
}Response headers
X-Ratelimit-Limit: 200
X-Ratelimit-Remaining: 198Sent to Atlassian Cloud on .
POST /rest/api/3/issue
The same bad issue type sent to the single create endpoint, to compare with elementErrors above.
curl
curl -X POST \
-u "you@example.com:$ATLASSIAN_API_TOKEN" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data '{
"fields": {
"project": {
"key": "WEB"
},
"issuetype": {
"name": "NoSuchType"
},
"summary": "x"
}
}' \
'https://your-domain.atlassian.net/rest/api/3/issue'Python (requests)
import os
import requests
EMAIL = "you@example.com"
r = requests.post(
'https://your-domain.atlassian.net/rest/api/3/issue',
auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
headers={'Accept': 'application/json'},
json={'fields': {'project': {'key': 'WEB'},
'issuetype': {'name': 'NoSuchType'},
'summary': 'x'}},
)
print(r.status_code, r.text)Response: HTTP 400
{
"errorMessages": [],
"errors": {
"issuetype": "Specify a valid issue type"
}
}Sent to Atlassian Cloud on .
POST /rest/api/3/issue
A single create answers with a flat id, key and self, while the bulk body wraps the same triple in an issues array.
curl
curl -X POST \
-u "you@example.com:$ATLASSIAN_API_TOKEN" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data '{
"fields": {
"project": {
"key": "WEB"
},
"issuetype": {
"name": "Task"
},
"summary": "Example created through REST API",
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "Created with POST /rest/api/3/issue."
}
]
}
]
},
"labels": [
"api-example"
],
"duedate": "2026-12-15"
}
}' \
'https://your-domain.atlassian.net/rest/api/3/issue'Python (requests)
import os
import requests
EMAIL = "you@example.com"
r = requests.post(
'https://your-domain.atlassian.net/rest/api/3/issue',
auth=(EMAIL, os.environ["ATLASSIAN_API_TOKEN"]),
headers={'Accept': 'application/json'},
json={'fields': {'project': {'key': 'WEB'},
'issuetype': {'name': 'Task'},
'summary': 'Example created through REST API',
'description': {'type': 'doc',
'version': 1,
'content': [{'type': 'paragraph',
'content': [{'type': 'text',
'text': 'Created with POST '
'/rest/api/3/issue.'}]}]},
'labels': ['api-example'],
'duedate': '2026-12-15'}},
)
print(r.status_code, r.text)Response: HTTP 201
{
"id": "10768",
"key": "WEB-57",
"self": "https://your-domain.atlassian.net/rest/api/3/issue/10768"
}Sent to Atlassian Cloud on .
How it behaves
- A batch with one valid and one invalid element answered 201, with one entry under issues and one under errors.
- Each error entry has status, elementErrors and failedElementNumber. failedElementNumber is 1 for the second element, so it is a zero-based index into issueUpdates.
- elementErrors has the same errorMessages and errors shape as the single create endpoint.
- Elements are validated independently; the valid one was created even though its neighbour failed.
Pitfalls
- Treating 201 as full success hides failures. Always read the errors array and map failedElementNumber back to your input.
- The spec caps a call at 50 work items. Split larger imports into chunks of 50 or fewer.
- There is no rollback. After a partial failure the created work items stay, so retrying the whole batch creates duplicates; resend only the failed elements.
- The spec says 400 is for the case where all requests are invalid. That case was not probed, so test it before relying on the exact status.
Questions and answers
How many work items fit in one call?
The spec says up to 50.
How do I find which element failed?
Use failedElementNumber in each errors entry; element 0 is the first item of issueUpdates.