• Approval
  • Customer
  • Customer Request
  • Customer Transition
  • Jira Service Management Application
  • Organization
  • Organization Service Desk
  • Portals
  • Queue
  • Queue Settings
  • Request Attachment
  • Request Type
  • Service Desk
  • Service Desk Customer
  • application-properties
  • applicationrole
  • attachment
  • avatar
  • cluster
  • comment
  • component
  • configuration
  • customFieldOption
  • customFields
  • dashboard
  • email-templates
  • field
  • filter
  • group
  • groups
  • groupuserpicker
  • index
  • index-snapshot
  • issue
  • issueLinkType
  • issuesecurityschemes
  • issuetype
  • issuetypescheme
  • jql
  • licenseValidator
  • monitoring
  • mypermissions
  • mypreferences
  • myself
  • notificationscheme
  • password
  • permissions
  • permissionscheme
  • priority
  • priorityschemes
  • project
  • projectCategory
  • projects
  • projectvalidate
  • reindex
  • resolution
  • role
  • screens
  • securitylevel
  • serverInfo
  • session
  • settings
  • status
  • statuscategory
  • terminology
  • universal_avatar
  • upgrade
  • user
  • version
  • websudo
  • workflow
  • workflowscheme
  • worklog
  • Assets - AQL
  • Assets - Analytics
  • Assets - Archived Objects
  • Assets - Attachments
  • Assets - Comments
  • Assets - Icons
  • Assets - Index Configuration
  • Assets - Object
  • Assets - Object Archive
  • Assets - Object Attribute
  • Assets - Object Connected Tickets
  • Assets - Object Restore
  • Assets - Object Schema
  • Assets - Object Type
  • Assets - Object Type Attribute
  • Assets - Progress
  • Assets - QR Code
  • Assets - Status Types
Server
Jira Service Management / / REST API

Assets - Comments

Postman Collection
OpenAPI
POST

Add comment

Add a comment to an object.

Request

Request body*/*

The comment to create

created

string

updated

string

id

integer

actor

UserEntry

role

integer

comment

string

commentOutput

string

objectId

integer

canEdit

boolean

canDelete

boolean

Responses

Returns the created comment

application/json

CommentEntry
POST/assets/1.0/comment/create
1 2 3 curl --request POST \ --url 'http://{baseurl}/rest/assets/1.0/comment/create' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 { "created": "<string>", "updated": "<string>", "id": 2154, "actor": { "avatarUrl": "<string>", "displayName": "<string>", "name": "<string>", "key": "<string>", "html": "<string>", "renderedLink": "<string>", "isDeleted": true, "lastSeenVersion": "<string>" }, "role": 2154, "comment": "<string>", "commentOutput": "<string>", "objectId": 2154, "canEdit": true, "canDelete": true }
GET

Get comments

Get the comments for an object by object ID.

Request

Path parameters

objectId

string

Required

Query parameters

asc

string

Responses

Returns the comments for the object

application/json

CommentEntry
GET/assets/1.0/comment/object/{objectId}
1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/assets/1.0/comment/object/{objectId}' \ --header 'Accept: application/json'
200Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 { "created": "<string>", "updated": "<string>", "id": 2154, "actor": { "avatarUrl": "<string>", "displayName": "<string>", "name": "<string>", "key": "<string>", "html": "<string>", "renderedLink": "<string>", "isDeleted": true, "lastSeenVersion": "<string>" }, "role": 2154, "comment": "<string>", "commentOutput": "<string>", "objectId": 2154, "canEdit": true, "canDelete": true }

Rate this page: