Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get a property from a comment

Returns the value of the property with a given key from the comment identified by the key or by the id. The user who retrieves the property is required to have permissions to read the comment.

GET/api/2/comment/{commentId}/properties/{propertyKey}
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
propertyKeystringrequired

the key of the property to return.

commentIdstringrequired

the comment from which the property will be returned.

Responses
200

Returns the value of the property with a given key from the comment.

keystring
valuestring
400

Returned if the comment key or id is invalid.

401

Returned if the calling user is not authenticated.

403

Returned if the calling user does not have permission to browse the comment.

404

Returned if the comment with given key or id does not exist or if the property with given key is not found.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://jira.example.com/rest/api/2/comment/string/properties/string' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "key": "issue.support",
  "value": "{\"hipchat.room.id\":\"support-123\",\"support.time\":\"1m\"}"
}

Was this page helpful?