Details
-
Suggestion
-
Resolution: Unresolved
-
None
Description
The bulk issue create API, /rest/api/3/issue/bulk, does not allow the issue data returned in the response to be mapped to the issue creation data in the request. Whilst developers could assume the order of the issue response data matches the order of request data, it is possible that some issues will fail to get created so simply associating items in the arrays would not work.
The API could be enhanced with an additional field in each request that is also returned in each response so that they can be mapped to each other. For example:
For example, the `requestId` field in the following pseudo request/response would serve as a field for mapping responses to requests.:
issueRequestData: [{ summary: 'foo', requestId: 'uuid-a' }, { summary: 'bar', requestId: 'uuid-b' }] issueResponseData: [{ id: '10001', key: 'ED-24', requestId: 'uuid-a' }, { id: '10002', key: 'ED-25', requestId: 'uuid-b' }]