provider Priority schemes PUT /rest/api/3/priorityscheme/{schemeId}
@utdk/jira /rest/api/3/priorityscheme/{schemeId}
Update priority scheme
Updates a priority scheme. This includes its details, the lists of priorities and projects in it **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).
schemeId path required
The ID of the priority scheme.
integer

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.

updatepriorityscheme
PUT/rest/api/3/priorityscheme/{schemeId}
Updates a priority scheme. This includes its details, the lists of priorities and projects in it **[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).

Parameters

required

The ID of the priority scheme.

Input

The default priority of the scheme.

The description of the priority scheme.

Instructions to migrate the priorities of issues. `in` mappings are used to migrate the priorities of issues to priorities used within the priority scheme. `out` mappings are used to migrate the priorities of issues to priorities not used within the priority scheme. * When **priorities** are **added** to the priority scheme, no mapping needs to be provided as the new priorities are not used by any issues. * When **priorities** are **removed** from the priority scheme, issues that are using those priorities must be migrated to new priorities used by the priority scheme. * An `in` mapping must be provided for each of these priorities. * When **projects** are **added** to the priority scheme, the priorities of issues in those projects might need to be migrated to new priorities used by the priority scheme. This can occur when the current scheme does not use all the priorities in the project(s)' priority scheme(s). * An `in` mapping must be provided for each of these priorities. * When **projects** are **removed** from the priority scheme, the priorities of issues in those projects might need to be migrated to new priorities within the **Default Priority Scheme** that are not used by the priority scheme. This can occur when the **Default Priority Scheme** does not use all the priorities within the current scheme. * An `out` mapping must be provided for each of these priorities. For more information on `in` and `out` mappings, see the child properties documentation for the `PriorityMapping` object below.

The name of the priority scheme. Must be unique.

The priorities in the scheme.

The projects in the scheme.

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.updatepriorityscheme()