The endpoint GET /jira/forms/cloud/{cloudId}/issue/{issueKey}/form/{formId}/attachment returns only metadata (fileId, fileName, fileSize, mimeType), but there is no documented endpoint to download the actual binary file.
I have reviewed the official documentation:
- https://developer.atlassian.com/cloud/forms/rest/api-group-forms-on-issue/
- https://developer.atlassian.com/cloud/forms/rest/intro/
Questions:
1. What is the correct API endpoint to download form attachments using the fileId?
2. Is this functionality available via REST API?
3. If not documented, what is the recommended approach?
Thank you!
Based on this doc ( https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/attachment-getAttachment) and description:
The representation does not contain the attachment itself, but contains a URI that can be used to download the actual attached file.
you will be able to get attachment url and then you can use wget to download it. Example here (https://support.atlassian.com/jira/kb/how-to-download-attachments-using-rest-api-and-sso/). I know, this is for DC but it should hint you.
Regards,
Seba
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.