Hi Team,
I need to create downloadable link to download an attachment. When I get an issue by Postman I get an attachment list with link like https://<my-domain>.atlassian.net/rest/api/2/attachment/content/10004)
but when I get an issue by app (Forge Custom UI im ny case) it returns me links like https://api.atlassian.com/ex/jira/<id>/rest/api/2/attachment/content/10004
.
And <a href="<attachment link> download">Download</>
works for the first link but don’t work with the second one.
I tried both api.asApp()
and api.asUser()
and it returns the same results.
Can I get attachments links like https://<my-domain>.atlassian.net/rest/api/2/attachment/content/10004)
from REST API?