# Create comment with attachment preview via REST API

**URL:** <https://community.developer.atlassian.com/t/create-comment-with-attachment-preview-via-rest-api/99603>\
**Category:** Jira Cloud\
**Tags:** comment, attachment, jira-cloud, rest-api\
**Created:** [March 13, 2026, 2:13pm UTC](https://community.developer.atlassian.com/t/create-comment-with-attachment-preview-via-rest-api/99603 "2026-03-13T14:13:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramxnchv](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/ramxnchv/32/55517_2.png) [@Ramxnchv](https://community.developer.atlassian.com/u/Ramxnchv)\
**Post date:** [March 13, 2026, 2:13pm UTC](https://community.developer.atlassian.com/t/create-comment-with-attachment-preview-via-rest-api/99603/1 "2026-03-13T14:13:02Z")

</div>

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?

> **[Node - media](https://developer.atlassian.com/cloud/jira/platform/apis/document/nodes/media/)**
