Skip to content

Atlassian: Bulk create issue

Atlassian issues.createIssues: arguments, response, policy and SDK examples.

← Issues operations · Get started

Operation atlassian.createissues

Provider route: POST /{cloudId}/rest/api/3/issue/bulk. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/atlassian with npm, or alter-sdk-atlassian with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { AtlassianIntegration } from "@alter-ai/atlassian";
async function execute(input: Parameters<AtlassianIntegration["issues"]["createIssues"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new AtlassianIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.issues.createIssues(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_atlassian import AtlassianIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = AtlassianIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.issues.create_issues(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.cloudIdstringRequired within parentPattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
bodyModelRequired within parentExpand Bulk create issue — request body — body

Referenced models: Bulk create issue — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Bulk create issue — response body

Referenced models: Bulk create issue — response body

13 more schemas are linked from the tables above, on the schema pages.

Bulk create issue — request body — body
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: allowed
issueUpdatesarrayOptional
issueUpdates[]ModelEach itemExpand Edit issue — request body — body

Referenced models: Edit issue — request body — body

Bulk create issue — response body
FieldTypePresenceDescription and constraints
$objectRootDetails about the issues created and the errors for requests that failed.
errorsJSONOptional
errors (anyOf 1)arrayAlternativeError details for failed issue creation requests.
Read only: true
errors (anyOf 1)[]ModelEach itemExpand Bulk create issue — response body — errors Error details for failed issue creation requests item
errors (anyOf 2)nullAlternative
issuesJSONOptional
issues (anyOf 1)arrayAlternativeDetails of the issues created.
Read only: true
issues (anyOf 1)[]ModelEach itemExpand Create issue — response body
issues (anyOf 2)nullAlternative

Referenced models: Bulk create issue — response body — errors Error details for failed issue creation requests item, Create issue — response body

Edit issue — request body — body
FieldTypePresenceDescription and constraints
$objectRootDetails of an issue update request.
Additional keys: allowed
fieldsobjectOptionalList of issue screen fields to update, specifying the sub-field to update and its value for each field. This field provides a straightforward option when setting a sub-field. When multiple sub-fields or other operations are required, use `update`. Fields included in here cannot be included in `update`.
Additional keys: see wildcard field
fields.*JSONAdditional keys
historyMetadataModelOptionalExpand Edit issue — request body — body history Metadata
Additional issue history details.
propertiesarrayOptionalDetails of issue properties to be add or update.
properties[]ModelEach itemExpand Edit issue — request body — body properties item
transitionModelOptionalExpand Edit issue — request body — body transition
Details of a transition. Required when performing a transition, optional when creating or editing an issue.
updateobjectOptionalA Map containing the field field name and a list of operations to perform on the issue screen field. Note that fields included in here cannot be included in `fields`.
Additional keys: see wildcard field
update.*arrayAdditional keys
update.*[]ModelEach itemExpand Edit issue — request body — body update value item

Referenced models: Edit issue — request body — body properties item, Edit issue — request body — body update value item, Edit issue — request body — body history Metadata, Edit issue — request body — body transition

Bulk create issue — response body — errors Error details for failed issue creation requests item
FieldTypePresenceDescription and constraints
$objectRoot
elementErrorsJSONOptional
elementErrors (anyOf 1)ModelAlternativeExpand Validate project key — response body
elementErrors (anyOf 2)nullAlternative
failedElementNumberJSONOptional
failedElementNumber (anyOf 1)JSONAlternative
failedElementNumber (anyOf 1) (anyOf 1)integerAlternativeFormat: int32
failedElementNumber (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
failedElementNumber (anyOf 2)nullAlternative
statusJSONOptional
status (anyOf 1)JSONAlternative
status (anyOf 1) (anyOf 1)integerAlternativeFormat: int32
status (anyOf 1) (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
status (anyOf 2)nullAlternative

Referenced models: Validate project key — response body

Create issue — response body
FieldTypePresenceDescription and constraints
$objectRootDetails about a created issue or subtask.
idJSONOptional
id (anyOf 1)stringAlternativeThe ID of the created issue or subtask.
Read only: true
id (anyOf 2)nullAlternative
keyJSONOptional
key (anyOf 1)stringAlternativeThe key of the created issue or subtask.
Read only: true
key (anyOf 2)nullAlternative
selfJSONOptional
self (anyOf 1)stringAlternativeThe URL of the created issue or subtask.
Read only: true
self (anyOf 2)nullAlternative
transitionJSONOptional
transition (anyOf 1)ModelAlternativeExpand Create issue — response body — watchers error Collection, status, warning Collection
The response code and messages related to any requested transition.
Read only: true
transition (anyOf 2)nullAlternative
watchersJSONOptional
watchers (anyOf 1)ModelAlternativeExpand Create issue — response body — watchers error Collection, status, warning Collection
The response code and messages related to any requested watchers.
Read only: true
watchers (anyOf 2)nullAlternative

Referenced models: Create issue — response body — watchers error Collection, status, warning Collection

Edit issue — request body — body properties item
FieldTypePresenceDescription and constraints
$objectRootAn entity property, for more information see [Entity properties](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/).
Additional keys: not allowed
keystringOptionalThe key of the property. Required on create and update.
valueJSONOptionalThe value of the property. Required on create and update.
Edit issue — request body — body update value item
FieldTypePresenceDescription and constraints
$objectRootDetails of an operation to perform on a field.
Additional keys: not allowed
addJSONOptionalThe value to add to the field.
copyJSONOptionalThe field value to copy from another issue.
editJSONOptionalThe value to edit in the field.
removeJSONOptionalThe value to removed from the field.
setJSONOptionalThe value to set in the field.
Edit issue — request body — body history Metadata
FieldTypePresenceDescription and constraints
$objectRootDetails of issue history metadata.
Additional keys: allowed
activityDescriptionstringOptionalThe activity described in the history record.
activityDescriptionKeystringOptionalThe key of the activity described in the history record.
actorModelOptionalExpand Edit issue — request body — body history Metadata actor
Details of the user whose action created the history record.
causeModelOptionalExpand Edit issue — request body — body history Metadata actor
Details of the cause that triggered the creation the history record.
descriptionstringOptionalThe description of the history record.
descriptionKeystringOptionalThe description key of the history record.
emailDescriptionstringOptionalThe description of the email address associated the history record.
emailDescriptionKeystringOptionalThe description key of the email address associated the history record.
extraDataobjectOptionalAdditional arbitrary information about the history record.
Additional keys: see wildcard field
extraData.*stringAdditional keys
generatorModelOptionalExpand Edit issue — request body — body history Metadata actor
Details of the system that generated the history record.
typestringOptionalThe type of the history record.

Referenced models: Edit issue — request body — body history Metadata actor

SDK function policy ID: atlassian.createissues. Catalog operation: createissues. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["write:jira-work"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.