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

Hierarchy

  • CommonHttpService
    • IssueWorklogPropertiesService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

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

    Returns IssueWorklogPropertiesService

Methods

  • Sets the value of a worklog property. Use this operation to store custom data against the worklog.

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

    This operation can be accessed anonymously.

    Permissions required:

    • Browse projects project permission for the project that the issue is in.
    • If issue-level security is configured, issue-level security permission to view the issue.
    • Edit all worklogs project permission to update any worklog or Edit own worklogs to update worklogs created by the user.
    • If the worklog has visibility restrictions, belongs to the group or has the role visibility is restricted to.

    Parameters

    • params: {
          issueIdOrKey: string;
          propertyKey: string;
          requestBody: unknown;
          worklogId: string;
      }
      • issueIdOrKey: string

        The ID or key of the issue.

      • propertyKey: string

        The key of the issue 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.

      • worklogId: string

        The ID of the worklog.

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

    • status: 200, mediaType: application/json

      Returned if the worklog property is updated.

    • status: 201, mediaType: application/json

      Returned if the worklog property is created.

    PUT /rest/api/3/issue/{issueIdOrKey}/worklog/{worklogId}/properties/{propertyKey} @scopes-current write:jira-work @scopes-beta write:issue-worklog.property:jira

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

    Returns void