How to imort attachments through CSV, if issuekeys are different
I am sorry that the answer you got before was misleading - it was generated by an AI that has no understanding of your question or Atlassian software.
I am not sure I understand the question, so I will paraphrase it so that you can see my thinking.
In this case, the answer is simple. You can not import data that you do not have (in this case, the data that "attachment X should be attached to issue Y")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.