Request

Create comment with attachment

Changed on

This method creates a comment on a customer request using one or more attachment files (uploaded using servicedeskapi/servicedesk/{serviceDeskId}/attachTemporaryFile), with the visibility set by public. See

  • GET servicedeskapi/request/{issueIdOrKey}/attachment
  • GET servicedeskapi/request/{issueIdOrKey}/comment/{commentId}/attachment

Permissions required: Permission to add an attachment.

Request limitations: Customers can set public visibility only.

post/rest/servicedeskapi/request/{issueIdOrKey}/attachment

Request

  • Base URL
    https://your-domain.atlassian.net
  • URL
    https://your-domain.atlassian.net/rest/servicedeskapi/request/{issueIdOrKey}/attachment
  • Auth
    OAuth 2
    Authorization code: https://auth.atlassian.com/authorize
    Token URL: https://auth.atlassian.com/oauth/token scopes: write:servicedesk-request

Path parameters

issueIdOrKeystring required

The ID or key of the customer request to which the attachment will be added.

Request body

publicboolean

Controls whether the comment and its attachments are visible to customers

temporaryAttachmentIdsstring[]

List of IDs for the temporary attachments to be added to the customer request.

Response

Returns the attachments and comment.

Changes