Trying to get a way to copy an attachment from one issue to another issue as part of a group of issues.
Using REST API we have a tool for finalizing our test component and it grabs the test documentation (attachment on Company Issue in Jira) and downloads it then uploads it to the related client issue (Issue for client project in JIRA) to share the completed testing documentation.
Both projects are in the same JIRA instance but the clients cannot see the company project based on permissions. But we still want to be able to share this documentation when we compile our build output.
The problem comes in having to download then upload the attachment, as it sometimes times out and that prevents that issue from being updated with the proper test documentation.
Is there a REST API call that would allow me to copy the attachment and associate it with the client issue without having to download and then upload it?