This resource represents issue resolution values. Use it to obtain a list of all issue resolution values and the details of individual resolution values.

Hierarchy

  • CommonHttpService
    • IssueResolutionsService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

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

    Returns IssueResolutionsService

Methods

  • Returns a list of all issue resolution values.

    Permissions required: Permission to access Jira.

    Returns Promise<Resolution[]>

    Returned if the request is successful.

    example:

    [
    {
    "description": "A fix for this issue is checked into the tree and tested.",
    "id": "10000",
    "name": "Fixed",
    "self": "https://your-domain.atlassian.net/rest/api/3/resolution/1"
    },
    {
    "description": "This is what it is supposed to do.",
    "id": "10001",
    "name": "Works as designed",
    "self": "https://your-domain.atlassian.net/rest/api/3/resolution/3"
    }
    ]

    GET /rest/api/3/resolution @scopes-current read:jira-work @scopes-beta read:resolution:jira

  • Returns a paginated list of resolutions. The list can contain all resolutions or a subset determined by any combination of these criteria:

    • a list of resolutions IDs.
    • whether the field configuration is a default. This returns resolutions from company-managed (classic) projects only, as there is no concept of default resolutions in team-managed projects.

    Permissions required: Permission to access Jira.

    Parameters

    • params: {
          id?: string[];
          maxResults?: string;
          onlyDefault?: boolean;
          startAt?: string;
      } = {}
      • Optionalid?: string[]

        The list of resolutions IDs to be filtered out

      • OptionalmaxResults?: string

        The maximum number of items to return per page.

      • OptionalonlyDefault?: boolean

        When set to true, return default only, when IDs provided, if none of them is default, return empty page. Default value is false

      • OptionalstartAt?: string

        The index of the first item to return in a page of results (page offset).

    Returns Promise<PageBeanResolutionJsonBean>

    Returned if the request is successful.

    example:

    {
    "isLast": true,
    "maxResults": 50,
    "startAt": 0,
    "total": 1,
    "values": [
    {
    "description": "This is what it is supposed to do.",
    "id": "10001",
    "isDefault": true,
    "name": "Works as designed"
    }
    ]
    }

    GET /rest/api/3/resolution/search @scopes-current read:jira-work @scopes-beta read:resolution:jira

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

    Returns void