---
title: "Get workflow scheme project associations"
method: GET
path: "/rest/api/2/workflowscheme/project"
tags: ["Workflow scheme project associations"]
---

# Get workflow scheme project associations

`GET /rest/api/2/workflowscheme/project`

Returns a list of the workflow schemes associated with a list of projects. Each returned workflow scheme includes a list of the requested projects associated with it. Any team-managed or non-existent projects in the request are ignored and no errors are returned.

If the project is associated with the `Default Workflow Scheme` no ID is returned. This is because the way the `Default Workflow Scheme` is stored means it has no ID.

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).

## Query parameters

- `projectId` integer[], required

## Response `200`

Returned if the request is successful.

- ContainerOfWorkflowSchemeAssociations — A container for a list of workflow schemes together with the projects they are associated with.
  - `values` WorkflowSchemeAssociations[], required — A list of workflow schemes together with projects they are associated with.
    - `projectIds` string[], required — The list of projects that use the workflow scheme.
    - `workflowScheme` WorkflowScheme, required — Details about a workflow scheme.
      - `defaultWorkflow` string — The name of the default workflow for the workflow scheme. The default workflow has *All Unassigned Issue Types* assigned to it in Jira. If `defaultWorkflow` is not specified when creating a workflow scheme, it is set to *Jira Workflow (jira)*.
      - `description` string — The description of the workflow scheme.
      - `draft` boolean — Whether the workflow scheme is a draft or not.
      - `id` integer — The ID of the workflow scheme.
      - `issueTypeMappings` object — The issue type to workflow mappings, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme.
      - `issueTypes` object — The issue types available in Jira.
      - `lastModified` string — The date-time that the draft workflow scheme was last modified. A modification is a change to the issue type-project mappings only. This property does not apply to non-draft workflows.
      - `lastModifiedUser` User — A user with details as permitted by the user's Atlassian Account privacy settings. However, be aware of these exceptions: * User record deleted from Atlassian: This occurs as the result of a right to be forgotten request. In this case, `displayName` provides an indication and other parameters have default values or are blank (for example, email is blank). * User record corrupted: This occurs as a results of events such as a server import and can only happen to deleted users. In this case, `accountId` returns *unknown* and all other parameters have fallback values. * User record unavailable: This usually occurs due to an internal service outage. In this case, all parameters have fallback values.
        - `accountId` string — The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. Required in requests.
        - `accountType` 'atlassian' | 'app' | 'customer' | 'unknown' — The user account type. Can take the following values: * `atlassian` regular Atlassian user account * `app` system account used for Connect applications and OAuth to represent external systems * `customer` Jira Service Desk account representing an external service desk
        - `active` boolean — Whether the user is active.
        - `appType` string — The app type of the user account when accountType is 'app'. Can take the following values: * `service` Service Account * `agent` Rovo Agent Account * `unknown` Unknown app type
        - `applicationRoles` SimpleListWrapperApplicationRole
          - `callback` ListWrapperCallbackApplicationRole
          - `items` ApplicationRole[]
            - `defaultGroups` string[] — The groups that are granted default access for this application role. As a group's name can change, use of `defaultGroupsDetails` is recommended to identify a groups.
            - `defaultGroupsDetails` GroupName[] — The groups that are granted default access for this application role.
              - …
            - `defined` boolean — Deprecated.
            - `groupDetails` GroupName[] — The groups associated with the application role.
              - …
            - `groups` string[] — The groups associated with the application role. As a group's name can change, use of `groupDetails` is recommended to identify a groups.
            - `hasUnlimitedSeats` boolean
            - `key` string — The key of the application role.
            - `name` string — The display name of the application role.
            - `numberOfSeats` integer — The maximum count of users on your license.
            - `platform` boolean — Indicates if the application role belongs to Jira platform (`jira-core`).
            - `remainingSeats` integer — The count of users remaining on your license.
            - `selectedByDefault` boolean — Determines whether this application role should be selected by default on user creation.
            - `userCount` integer — The number of users counting against your license.
            - `userCountDescription` string — The [type of users](https://confluence.atlassian.com/x/lRW3Ng) being counted against your license.
          - `max-results` integer
          - `pagingCallback` ListWrapperCallbackApplicationRole
          - `size` integer
        - `avatarUrls` AvatarUrlsBean
          - `16x16` string, uri — The URL of the item's 16x16 pixel avatar.
          - `24x24` string, uri — The URL of the item's 24x24 pixel avatar.
          - `32x32` string, uri — The URL of the item's 32x32 pixel avatar.
          - `48x48` string, uri — The URL of the item's 48x48 pixel avatar.
        - `displayName` string — The display name of the user. Depending on the user’s privacy setting, this may return an alternative value.
        - `emailAddress` string — The email address of the user. Depending on the user’s privacy setting, this may be returned as null.
        - `expand` string — Expand options that include additional user details in the response.
        - `groups` SimpleListWrapperGroupName
          - `callback` ListWrapperCallbackGroupName
          - `items` GroupName[]
            - `groupId` string, nullable — The ID of the group, which uniquely identifies the group across all Atlassian products. For example, *952d12c3-5b5b-4d04-bb32-44d383afc4b2*.
            - `name` string — The name of group.
            - `self` string, uri — The URL for these group details.
          - `max-results` integer
          - `pagingCallback` ListWrapperCallbackGroupName
          - `size` integer
        - `guest` boolean — Whether the user is a guest.
        - `key` string — This property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.
        - `locale` string — The locale of the user. Depending on the user’s privacy setting, this may be returned as null.
        - `name` string — This property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.
        - `self` string, uri — The URL of the user.
        - `timeZone` string — The time zone specified in the user's profile. If the user's time zone is not visible to the current user (due to user's profile setting), or if a time zone has not been set, the instance's default time zone will be returned.
      - `name` string — The name of the workflow scheme. The name must be unique. The maximum length is 255 characters. Required when creating a workflow scheme.
      - `originalDefaultWorkflow` string — For draft workflow schemes, this property is the name of the default workflow for the original workflow scheme. The default workflow has *All Unassigned Issue Types* assigned to it in Jira.
      - `originalIssueTypeMappings` object — For draft workflow schemes, this property is the issue type to workflow mappings for the original workflow scheme, where each mapping is an issue type ID and workflow name pair. Note that an issue type can only be mapped to one workflow in a workflow scheme.
      - `self` string, uri
      - `updateDraftIfNeeded` boolean — Whether to create or update a draft workflow scheme when updating an active workflow scheme. An active workflow scheme is a workflow scheme that is used by at least one project. The following examples show how this property works: * Update an active workflow scheme with `updateDraftIfNeeded` set to `true`: If a draft workflow scheme exists, it is updated. Otherwise, a draft workflow scheme is created. * Update an active workflow scheme with `updateDraftIfNeeded` set to `false`: An error is returned, as active workflow schemes cannot be updated. * Update an inactive workflow scheme with `updateDraftIfNeeded` set to `true`: The workflow scheme is updated, as inactive workflow schemes do not require drafts to update. Defaults to `false`.

## Other responses

- `400` — Returned if the request is invalid.
- `401` — Returned if the authentication credentials are incorrect or missing.
- `403` — Returned if the user does not have the necessary permission.

---

[API](https://skmtc.net/atlassian/apis/the-jira-cloud-platform-rest-api.md) · [All operations](https://skmtc.net/atlassian/apis/the-jira-cloud-platform-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-jira-cloud-platform-rest-api/versions/a26541c2f8bd/schema)
