JIRA to salesforce attachments syncing

Hi Guys,

I need to sync The Jira attachment issue in Salesforce. I tried the following API:
GET /rest/api/2/attachment/{id}

I was able to create an Attachment record in Salesforce based on that. But issue is that it doesn’t open. whenever I click on the attachment it just start downloading in my local pc.

Can you please tell me that what I need to do to create actual attachment record based on the JIRA attachments?