Create comment with attachment preview via REST API

Hi, I would like to know how can post a comment with an attachment preview via REST API v3

Im using POST /rest/api/3/issue/{issueIdOrKey}/comment and ADF format

But when I try to add the attachment via media node it requires a Media Services ID (for example: “id”: “4478e39c-cf9b-41d1-ba92-68589487cd75”) and not an attachment ID which is the output of POST/rest/api/3/issue/{issueIdOrKey}/attachments (for example: “id”: “10001”)

How can I solve this problem?

1 Like