Atlassian Jira Issue Comments API

Manage comments on issues.

OpenAPI Specification

atlassian-jira-issue-comments-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Atlassian Jira Cloud Platform REST API v3 Fields Issue Comments API
  description: 'Best-effort OpenAPI 3.1 description of the Atlassian Jira Cloud platform REST API

    (version 3). This spec covers a representative subset of issue, project, user,

    search, comment and workflow operations. Derived from the public developer

    documentation at https://developer.atlassian.com/cloud/jira/platform/rest/v3/.

    '
  version: '3'
  contact:
    name: Atlassian Developer
    url: https://developer.atlassian.com/cloud/jira/platform/rest/v3/
servers:
- url: https://{your-domain}.atlassian.net
  description: Jira Cloud site
  variables:
    your-domain:
      default: example
      description: Your Atlassian site domain
security:
- basicAuth: []
- OAuth2: []
tags:
- name: Issue Comments
  description: Manage comments on issues.
paths:
  /rest/api/3/issue/{issueIdOrKey}/comment:
    get:
      tags:
      - Issue Comments
      summary: Get comments
      operationId: getComments
      parameters:
      - $ref: '#/components/parameters/IssueIdOrKey'
      responses:
        '200':
          description: Comments returned
    post:
      tags:
      - Issue Comments
      summary: Add comment
      operationId: addComment
      parameters:
      - $ref: '#/components/parameters/IssueIdOrKey'
      responses:
        '201':
          description: Comment added
  /rest/api/3/issue/{issueIdOrKey}/comment/{id}:
    put:
      tags:
      - Issue Comments
      summary: Update comment
      operationId: updateComment
      parameters:
      - $ref: '#/components/parameters/IssueIdOrKey'
      - in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Comment updated
components:
  parameters:
    IssueIdOrKey:
      in: path
      name: issueIdOrKey
      required: true
      schema:
        type: string
      description: Numeric ID or human key of the issue
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Email + API token via HTTP Basic auth.
    OAuth2:
      type: oauth2
      description: Atlassian OAuth 2.0 (3LO) for Jira Cloud.
      flows:
        authorizationCode:
          authorizationUrl: https://auth.atlassian.com/authorize
          tokenUrl: https://auth.atlassian.com/oauth/token
          scopes:
            read:jira-work: Read Jira work
            write:jira-work: Write Jira work
            read:jira-user: Read Jira user
            manage:jira-project: Manage Jira projects