This resource represents license metrics. Use it to get available metrics for Jira licences.

Hierarchy

  • CommonHttpService
    • LicenseMetricsService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

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

    Returns LicenseMetricsService

Methods

  • Returns the total approximate number of user accounts for a single Jira license. Note that this information is cached with a 7-day lifecycle and could be stale at the time of call.

    Permissions required: Administer Jira global permission.

    Parameters

    • params: {
          applicationKey:
              | "jira-core"
              | "jira-product-discovery"
              | "jira-software"
              | "jira-servicedesk";
      }
      • applicationKey:
            | "jira-core"
            | "jira-product-discovery"
            | "jira-software"
            | "jira-servicedesk"

        The ID of the application, represents a specific version of Jira.

    Returns Promise<LicenseMetric>

    Returned if the request is successful.

    example:

    {
    "key": "license.jira-software.approximateUserCount",
    "value": "115"
    }

    GET /rest/api/3/license/approximateLicenseCount/product/{applicationKey} @scopes-current manage:jira-configuration @scopes-beta read:license:jira

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

    Returns void