I am creating an issue and add attachments to it. I then add a comment to the issue, which includes a link to those attachments - the content element. When some of my customers try to download these attachments, they get an error (no permission). I got the same error message when I open the ticket on an incognito window.
The best answer I was able to find is this: https://community.atlassian.com/t5/Jira-questions/Linking-inline-image-to-attachment-using-API/qaq-p/1980564
However, I am creating those issues on Apex (Salesforce) not sure how to get the redirect address.
Is there any other way to get the real ID of the attachment?
Is there a better way to add the link so it can be accessed anonymously?
Thank you for your help!