Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding attachments to comments via the API is not working properly

Bernhard Mostrey February 10, 2025

We are trying to do a sync between Topdesk and Jira. So far so good.

But when we try to add a comment to Jira with an attachment included, the attachment is only visible in the backend. When the customer checks the issue in the Portal they get a Preview Unavailable and cannot open the attachment.

This is the payload we are using for the comment api.

 

{ "body": { "type": "doc", "version": 1, "content": [ { "type": "paragraph", "content": [ { "type": "text", "text": "Here is the attached image:" } ] }, { "type": "mediaSingle", "attrs": { "layout": "center" }, "content": [ { "type": "media", "attrs": { "type": "external", "url": "https://domain.atlassian.net/secure/attachment/ID/FILENAME.png" } } ] } ] } }

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events