Facet count request. Jira Search has no REST group-by, so values are counted with one count-only JQL query per bucket.

interface MetricsFacetParams {
    concurrency?: number;
    field: string;
    from?: string;
    jql?: string;
    projects?: string[];
    to?: string;
    validateQuery?: boolean;
    values: (string | number)[];
}

Hierarchy (View Summary)

Properties

concurrency?: number

Optional maximum number of concurrent count requests

field: string

JQL field name, e.g. 'issuetype', 'status', 'priority', 'assignee'

from?: string

Lower date bound accepted by Jira JQL, e.g. '-30d' or '2026-06-01'

jql?: string

Additional JQL combined with generated metric clauses using AND

projects?: string[]

Project keys or IDs to restrict the metric to

to?: string

Upper date bound accepted by Jira JQL, e.g. '2026-06-30'

validateQuery?: boolean

Whether Jira should validate each generated JQL query

values: (string | number)[]

Bucket values to count for the field