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

Create a custom field using a definition

Creates a custom field using a definition

POST/api/2/field
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.

Request body
application/json
descriptionstring
idstring
issueTypeIdsstring[]
namestring
projectIdsinteger<int64>[]
searcherKeystring
selfstring<uri>
typestring
Responses
201

Custom field was created

clauseNamesstring[]
customboolean
idstring
namestring
navigableboolean
orderableboolean
schemaJsonTypeBean
Show properties
customstring
customIdinteger<int64>
itemsstring
systemstring
typestring
searchableboolean
400

Returned if the input is invalid

500

Returned if exception occured during custom field creation

Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'http://jira.example.com/rest/api/2/field' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "description": "Custom field for picking groups",
  "id": "10000",
  "issueTypeIds": [
    "1",
    "2"
  ],
  "name": "New custom field",
  "projectIds": [
    10000,
    10001
  ],
  "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"
}'
Response
{
  "clauseNames": "[description]",
  "custom": false,
  "id": "description",
  "name": "Description",
  "navigable": true,
  "orderable": true,
  "schema": {},
  "searchable": true
}

Was this page helpful?