Jira · Capability

Jira Cloud Platform REST API — Issue Comments

Jira Cloud Platform REST API — Issue Comments. 2 operations. Lead operation: Jira Get Comments. Self-contained Naftiko capability covering one Jira business surface.

Run with Naftiko JiraIssue Comments

What You Can Do

GET
Getcomments — Jira Get Comments
/v1/issue/{issueidorkey}/comment
POST
Addcomment — Jira Add Comment
/v1/issue/{issueidorkey}/comment

MCP Tools

jira-get-comments

Jira Get Comments

read-only idempotent
jira-add-comment

Jira Add Comment

Capability Spec

cloud-platform-rest-issue-comments.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Jira Cloud Platform REST API — Issue Comments
  description: 'Jira Cloud Platform REST API — Issue Comments. 2 operations. Lead operation: Jira Get Comments. Self-contained
    Naftiko capability covering one Jira business surface.'
  tags:
  - Jira
  - Issue Comments
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    JIRA_API_KEY: JIRA_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloud-platform-rest-issue-comments
    baseUri: https://{domain}.atlassian.net/rest/api/3
    description: Jira Cloud Platform REST API — Issue Comments business capability. Self-contained, no shared references.
    resources:
    - name: issue-issueIdOrKey-comment
      path: /issue/{issueIdOrKey}/comment
      operations:
      - name: getcomments
        method: GET
        description: Jira Get Comments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: startAt
          in: query
          type: integer
          description: The index of the first item to return in a page of results (page offset).
        - name: maxResults
          in: query
          type: integer
          description: The maximum number of items to return per page.
        - name: orderBy
          in: query
          type: string
          description: 'The order of comments returned. Accepted values: created (ascending by default), -created (descending).'
        - name: expand
          in: query
          type: string
          description: 'Use expand to include additional information about comments in the response. Accepted values: renderedBody.'
      - name: addcomment
        method: POST
        description: Jira Add Comment
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: expand
          in: query
          type: string
          description: 'Use expand to include additional information about comments in the response. Accepted values: renderedBody.'
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.JIRA_API_KEY}}'
  exposes:
  - type: rest
    namespace: cloud-platform-rest-issue-comments-rest
    port: 8080
    description: REST adapter for Jira Cloud Platform REST API — Issue Comments. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/issue/{issueidorkey}/comment
      name: issue-issueidorkey-comment
      description: REST surface for issue-issueIdOrKey-comment.
      operations:
      - method: GET
        name: getcomments
        description: Jira Get Comments
        call: cloud-platform-rest-issue-comments.getcomments
        with:
          startAt: rest.startAt
          maxResults: rest.maxResults
          orderBy: rest.orderBy
          expand: rest.expand
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addcomment
        description: Jira Add Comment
        call: cloud-platform-rest-issue-comments.addcomment
        with:
          expand: rest.expand
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloud-platform-rest-issue-comments-mcp
    port: 9090
    transport: http
    description: MCP adapter for Jira Cloud Platform REST API — Issue Comments. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: jira-get-comments
      description: Jira Get Comments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloud-platform-rest-issue-comments.getcomments
      with:
        startAt: tools.startAt
        maxResults: tools.maxResults
        orderBy: tools.orderBy
        expand: tools.expand
      outputParameters:
      - type: object
        mapping: $.
    - name: jira-add-comment
      description: Jira Add Comment
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cloud-platform-rest-issue-comments.addcomment
      with:
        expand: tools.expand
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.