Skip to content

Resolve duplicate key value violates on JiraImport

What does this MR do and why?

While importing issues from Jira and simultaneously creating a new issue via the UI, there is a chance of conflicting IIDs which results in:

  • import failure
  • error while create new issues

Error described in #229614 (closed)

We are introducing IID allocation logic to prevent unique constraint violation and possible import failure.

How to set up and validate locally

  1. Checkout the current branch
  2. Select already created repository
  3. Go to the Issues section and select Import from Jira
  4. Select a project and start with the import
  5. Visit the Issues page and create a new issue
  6. Validate that the new issue is successfully created
  7. Validate that all issues are successfully imported

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #229614 (closed)

Edited by Bojan Marjanovic

Merge request reports