The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

trying to add attachment from one issue to another via rest api

Ankit kharola
June 23, 2025

Hi , i am working on a forge app where i have to clone some issues i was trying to just copy the attachments array of the issue i am trying to clone to the new issue that i am creating. do we have to download the attachment content if i want the same attachment in the new issue? 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
Answer accepted
Gor Greyan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 23, 2025

Hi @Ankit kharola

Yes, you need to download and re-upload the attachment content when cloning issues in a Forge app.

In Jira, the attachments array contains metadata (Filename, MIME type, URL to download the file), but not the file content itself. So simply referencing the same attachment in a new issue won't work - Jira won't display them in the new issue.

Ankit kharola
June 23, 2025

@Gor Greyan  Thank you 

Like Gor Greyan likes this
Gor Greyan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
June 23, 2025

@Ankit kharola

Always glad to help.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events