provider Issue priorities GET /rest/api/3/priority/search
@utdk/jira /rest/api/3/priority/search
Search priorities
Returns a [paginated](#pagination) list of priorities. The list can contain all priorities or a subset determined by any combination of these criteria: * a list of priority IDs. Any invalid priority IDs are ignored. * a list of project IDs. Only priorities that are available in these projects will be returned. Any invalid project IDs are ignored. * whether the field configuration is a default. This returns priorities from company-managed (classic) projects only, as there is no concept of default priorities in team-managed projects. **[Permissions](#permissions) required:** Permission to access Jira.
startAt query
The index of the first item to return in a page of results (page offset).
string
maxResults query
The maximum number of items to return per page.
string
id query
The list of priority IDs. To include multiple IDs, provide an ampersand-separated list. For example, `id=2&id=3`.
array
projectId query
The list of projects IDs. To include multiple IDs, provide an ampersand-separated list. For example, `projectId=10010&projectId=10111`.
array
priorityName query
The name of priority to search for.
string
onlyDefault query
Whether only the default priority is returned.
boolean
expand query
Use `schemes` to return the associated priority schemes for each priority. Limited to returning first 15 priority schemes per priority.
string

Try it

Authentication
Configure credentials for The Jira Cloud platform REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

searchpriorities
GET/rest/api/3/priority/search
Returns a [paginated](#pagination) list of priorities. The list can contain all priorities or a subset determined by any combination of these criteria: * a list of priority IDs. Any invalid priority IDs are ignored. * a list of project IDs. Only priorities that are available in these projects will be returned. Any invalid project IDs are ignored. * whether the field configuration is a default. This returns priorities from company-managed (classic) projects only, as there is no concept of default priorities in team-managed projects. **[Permissions](#permissions) required:** Permission to access Jira.

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

The maximum number of items to return per page.

The list of priority IDs. To include multiple IDs, provide an ampersand-separated list. For example, `id=2&id=3`.

The list of projects IDs. To include multiple IDs, provide an ampersand-separated list. For example, `projectId=10010&projectId=10111`.

The name of priority to search for.

Whether only the default priority is returned.

Use `schemes` to return the associated priority schemes for each priority. Limited to returning first 15 priority schemes per priority.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import jira from '@utdk/jira';

await jira.searchpriorities({
  "startAt": "0",
  "maxResults": "50",
  "onlyDefault": false
})