Able get the attachment in source issue using
copyattachments = issue.fields.attachment
this give
[thumbnail:https://company.atlassian.net/rest/api/2/attachment/thumbnail/155060, filename:email2.PNG, size:7835, author:[accountId:627ee641694943006f36cc78, emailAddress:test@company.net, avatarUrls:[48x48:https://secure.gravatar.com/avatar/7533eb0d6b1a82b4c19ad20348ee8277?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FYP-2.png, 24x24:https://secure.gravatar.com/avatar/7533eb0d6b1a82b4c19ad20348ee8277?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FYP-2.png, 16x16:https://secure.gravatar.com/avatar/7533eb0d6b1a82b4c19ad20348ee8277?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FYP-2.png, 32x32:https://secure.gravatar.com/avatar/7533eb0d6b1a82b4c19ad20348ee8277?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FYP-2.png], displayName:John Doe, accountType:atlassian, self:https://company.atlassian.net/rest/api/2/user?accountId=627ee641694943006f36cc78, active:true, timeZone:America/Los_Angeles], created:2024-11-22T06:45:04.438-0800, self:https://company.atlassian.net/rest/api/2/attachment/155060, id:155060, mimeType:image/png, content:https://company.atlassian.net/rest/api/2/attachment/content/155060]
then try in to post this attachment in new created issue
POST request to /rest/api/2/issue/TTEST-123/attachments returned an error code: status: 415 - Unsupported Media Type
Please advise
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.