Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get custom fields with pagination

Returns a list of Custom Fields in the given range.

GET/api/2/customFields
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Query parameters
sortColumnstring

The column by which to sort the returned custom fields.

typesstring

A list of custom field types to filter the custom fields.

searchstring

A query string used to search custom fields.

maxResultsstring

The maximum number of custom fields to return.

sortOrderstring

The order in which to sort the returned custom fields.

screenIdsstring

A list of screen IDs to filter the custom fields.

lastValueUpdatestring

The last value update to filter the custom fields.

projectIdsstring

A list of project IDs to filter the custom fields.

startAtstring

The starting index of the returned custom fields.

Responses
200

Returned if a custom field with the given customFieldId exists and user has permission to it.

descriptionstring
idstring
isAllProjectsboolean
isLockedboolean
isManagedboolean
isTrustedboolean
issueTypeIdsstring[]
issuesWithValueinteger<int64>
lastValueUpdatestring<date-time>
namestring
numericIdinteger<int64>
projectIdsinteger<int64>[]
projectsCountinteger<int32>
screensCountinteger<int32>
searcherKeystring
selfstring<uri>
typestring
404

Returned if a custom field with the given customFieldId does not exist or the user does not have permission to view it.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://jira.example.com/rest/api/2/customFields' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "description": "Custom field for picking groups",
  "id": "10000",
  "isAllProjects": false,
  "isLocked": false,
  "isManaged": false,
  "isTrusted": true,
  "issueTypeIds": [
    "1",
    "2"
  ],
  "issuesWithValue": 100,
  "lastValueUpdate": "2018-11-01T12:00:00Z",
  "name": "New custom field",
  "numericId": 10000,
  "projectIds": [
    10000,
    10001
  ],
  "projectsCount": 2,
  "screensCount": 3,
  "searcherKey": "com.atlassian.jira.plugin.system.customfieldtypes:grouppickersearcher",
  "self": "http://localhost:8090/jira/rest/api/2.0/customField/10000",
  "type": "com.atlassian.jira.plugin.system.customfieldtypes:grouppicker"
}

Was this page helpful?