When creating an issue, inserting issue, assign users and set project should be in the same transaction. Backport #29490
DeleteIssuesByRepoID