I am trying to make a comment on an issue through the Rest API that references or links to an attachment inside that issue. I have already successfully attached a PDF file to the issue and now would like to reference that attachment in a comment using the API so that the Service Desk Customer can access the PDF.
Per the API Documentation on Add Comment the body needs to be:
The comment text in Atlassian Document Format.
Looking at the Document Format the only option I see is creating a link to the attachment. But when I use the direct link to the attachment the customer doesn’t have access to that link. Is there a different way of doing this?