Creating multiple issues in one bulk operation (Data Center)
If you need to create multiple issues at the same time with MLCS custom field, you can do this using a bulk REST API call.
This REST API call allows you to:
Create multiple issues in a single request.
Assign values to MLCS custom field, defined as
customfield_10029
in the example.Specify the project, issue type, summary, description and other fields that you want for each issue.
In the example below, we have used an http file to create three issues.
You must modify it to suit your needs.
You can create issues even if you do not have administrator permissions.
If you prefer, instead of using the value of the options as in the example, you can set the custom field MLCS options from the ID.
POST http://localhost:2990/jira/rest/api/2/issue/bulk
Authorization: Basic username password
content-type: application/json
{
"issueUpdates": [
{
"fields": {
"project":
{
"id": "10201"
},
"summary": "No REST for the Wicked.",
"description": "Creating an issue using IDs for projects and issue types through REST API",
"issuetype": {
"id": "10000"
},
"customfield_10029": [
{
"value": "1"
},
{
"value": "1.1"
},
{
"value": "1.1.1"
},
{
"value": "1.1.1.1"
}
]
}
},
{
"update": {},
"fields": {
"project":
{
"id": "10201"
},
"summary": "No REST for the Wicked.",
"description": "Creating of an issue using IDs for projects and issue types using the REST API",
"issuetype": {
"id": "10000"
},
"customfield_10029": [
{
"value": "2"
},
{
"value": "2.1"
}
]
}
},
{
"update": {},
"fields": {
"project":
{
"id": "10201"
},
"summary": "No REST for the Wicked.",
"description": "Creating of an issue using IDs for projects and issue types using the REST API",
"issuetype": {
"id": "10000"
},
"customfield_10029": [
{
"value": "3"
},
{
"value": "3.1"
}
]
}
}
]
}
You can now create multiple issues at the same time.