Hierarchy

  • CommonHttpService
    • UsernavpropertiesService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

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

    Returns UsernavpropertiesService

Methods

  • Sets the value of a Nav4 preference. Use this resource to store Nav4 preference data against a user in the Identity service.

    Permissions required:

    • Administer Jira global permission, to set a property on any user.
    • Access to Jira, to set a property on the calling user's record.

    Parameters

    • params: {
          accountId?: string;
          propertyKey: string;
          requestBody: unknown;
      }
      • OptionalaccountId?: string

        The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, 5b10ac8d82e05b22cc7d4ef5.

      • propertyKey: string

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

      • requestBody: unknown

        The value of the property. The value has to be a boolean JSON value. The maximum length of the property value is 32768 bytes.

    Returns Promise<unknown>

    Returned if the user property is updated/created.

    PUT /rest/api/3/user/nav4-opt-property/{propertyKey} @scopes-current write:jira-work @scopes-beta write:user.property:jira

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

    Returns void