---
title: "Get contexts for a field"
method: GET
path: "/rest/api/2/field/{fieldId}/contexts"
tags: ["Issue fields"]
deprecated: true
---

# Get contexts for a field

`GET /rest/api/2/field/{fieldId}/contexts`

> **Deprecated.**

Returns a [paginated](#pagination) list of the contexts a field is used in. Deprecated, use [ Get custom field contexts](#api-rest-api-2-field-fieldId-context-get).

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

## Path parameters

- `fieldId` string, required

## Query parameters

- `startAt` integer
- `maxResults` integer

## Response `200`

Returned if the request is successful.

- PageBeanContext — A page of items.
  - `isLast` boolean — Whether this is the last page.
  - `maxResults` integer — The maximum number of items that could be returned.
  - `nextPage` string, uri — If there is another page of results, the URL of the next page.
  - `self` string, uri — The URL of the page.
  - `startAt` integer — The index of the first item returned.
  - `total` integer — The number of items returned.
  - `values` Context[] — The list of items.
    - `id` integer — The ID of the context.
    - `name` string — The name of the context.
    - `scope` Scope — The projects the item is associated with. Indicated for items associated with [next-gen projects](https://confluence.atlassian.com/x/loMyO).
      - `project` ProjectDetails — Details about a project.
        - `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.
        - `id` string — The ID of the project.
        - `key` string — The key of the project.
        - `name` string — The name of the project.
        - `projectCategory` UpdatedProjectCategory — A project category.
          - `description` string — The name of the project category.
          - `id` string — The ID of the project category.
          - `name` string — The description of the project category.
          - `self` string — The URL of the project category.
        - `projectTypeKey` 'software' | 'service_desk' | 'business' — The [project type](https://confluence.atlassian.com/x/GwiiLQ#Jiraapplicationsoverview-Productfeaturesandprojecttypes) of the project.
        - `self` string — The URL of the project details.
        - `simplified` boolean — Whether or not the project is simplified.
      - `type` 'PROJECT' | 'TEMPLATE' — The type of scope.

## Other responses

- `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)
