Policies

Apply a policy to projects

Changed on

Adds a policy to a set of projects. Handles partial results: each project is processed independently, and failures on individual projects do not prevent the operation from proceeding on the remaining projects.

Jira Admin only. Returns 200 with the successful and failed project results if at least one project succeeds, or 409 if none do.

post/rest/api/2/policies/{policyId}/apply

Request

  • Base URL: https://your-domain.atlassian.net
  • URL: https://your-domain.atlassian.net/rest/api/2/policies/{policyId}/apply
  • Auth: one of:
    • HTTP basic
    • OAuth 2 (authorization code, authorization URL https://auth.atlassian.com/authorize, token URL https://auth.atlassian.com/oauth/token, scopes: manage:jira-configuration)

Path parameters

policyIdstring required

the policy ID to add

Request body

projectIdsinteger[]

Response

200 response

Changes