createIssues
Bulk create issue
Details
- Method:
POST - Path:
/rest/api/3/issue/bulk - Operation ID:
createIssues
Parameters
{
"issueUpdates": {
"description": "",
"required": false,
"location": "body",
"type": "array"
}
}Response Schema
{
"additionalProperties": false,
"description": "Details about the issues created and the errors for requests that failed.",
"properties": {
"errors": {
"description": "Error details for failed issue creation requests.",
"items": {
"additionalProperties": false,
"properties": {
"elementErrors": {
"additionalProperties": false,
"description": "Error messages from an operation.",
"properties": {
"errorMessages": {
"description": "The list of error messages produced by this operation. For example, \"input parameter 'key' must be provided\"",
"items": {
"type": "string"
},
"type": "array"
},
"errors": {
"additionalProperties": {
"type": "string"
},
"description": "The list of errors by parameter returned by the operation. For example,\"projectKey\": \"Project keys must start with an uppercase letter, followed by one or more uppercase alphanumeric characters.\"",
"type": "object"
},
"status": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"failedElementNumber": {
"format": "int32",
"type": "integer"
},
"status": {
"format": "int32",
"type": "integer"
}
},
"type": "object"
},
"readOnly": true,
"type": "array"
},
"issues": {
"description": "Details of the issues created.",
"items": {
"additionalProperties": false,
"description": "Details about a created issue or subtask.",
"properties": {
"id": {
"description": "The ID of the created issue or subtask.",
"readOnly": true,
"type": "string"
},
"key": {
"description": "The key of the created issue or subtask.",
"readOnly": true,
"type": "string"
},
"self": {
"description": "The URL of the created issue or subtask.",
"readOnly": true,
"type": "string"
},
"transition": {
"allOf": [
{
"$ref": "#/components/schemas/NestedResponse"
}
],
"description": "The response code and messages related to any requested transition.",
"readOnly": true
},
"watchers": {
"allOf": [
{
"$ref": "#/components/schemas/NestedResponse"
}
],
"description": "The response code and messages related to any requested watchers.",
"readOnly": true
}
},
"type": "object"
},
"readOnly": true,
"type": "array"
}
},
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('createIssues', {
# Add required parameters here
})