Server
Jira Service Management / Reference / REST API

Assets - Comments

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: