I am trying to get the link of the Jira issue attached document/file using a Jira service management API but it returns content that is not appropriate to me, is there any API or way to get the location or file link? If anyone knows it please help me
When calling the JSM REST API endpoint to get all the attachments for a request (GET /rest/servicedeskapi/request/{issueIdOrKey}/attachment) in the response payload, in the _links section, you have the links to download the attachment itself (content) or a thumbnail (if applicable):
thanks for the reply, I am integrating APIs into our project, when the time we get the content of the file, it is given XML format, which is creating an issue when we store it locally.
I am still not sure I understand what you are trying to achieve and how.
From what I understand so far, correct me if I am wrong, you have a JSM request with one (or more) attachment(s) and you want to do get the attachment using REST API in order to do something with it, but it is not clear what.