This resource represents issue comment properties, which provides for storing custom data against an issue comment. Use is to get, set, and delete issue comment properties as well as obtain the keys of all properties on a comment. Comment properties are a type of entity property.

Hierarchy

  • CommonHttpService
    • IssueCommentPropertiesService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

    • getClientInstance: (() => CommonHttpClient)
        • (): CommonHttpClient
        • Returns CommonHttpClient

    Returns IssueCommentPropertiesService

Methods

  • Creates or updates the value of a property for a comment. Use this resource to store custom data against a comment.

    The value of the request body must be a valid, non-empty JSON blob. The maximum length is 32768 characters.

    Permissions required: either of:

    • Edit All Comments project permission to create or update the value of a property on any comment.
    • Edit Own Comments project permission to create or update the value of a property on a comment created by the user.

    Also, when the visibility of a comment is restricted to a role or group the user must be a member of that role or group.

    Parameters

    • params: {
          commentId: string;
          propertyKey: string;
          requestBody: unknown;
      }
      • commentId: string

        The ID of the comment.

      • propertyKey: string

        The key of the property. The maximum length is 255 characters.

      • requestBody: unknown

        The value of the property. The value has to be a valid, non-empty JSON value. The maximum length of the property value is 32768 bytes.

    Returns Promise<{
        body: unknown;
        created: boolean;
    }>

    • status: 200, mediaType: application/json

      Returned if the comment property is updated.

    • status: 201, mediaType: application/json

      Returned if the comment property is created.

    PUT /rest/api/3/comment/{commentId}/properties/{propertyKey} @scopes-current write:jira-work @scopes-beta write:comment.property:jira

  • Method to initialize the class. Normally used to set up validation rules.

    Returns void