Internal
Create a new instance of the service.
Creates a custom field.
Permissions required: Administer Jira global permission.
Definition of the custom field to be created
Returned if the custom field is created.
example:
{
"clauseNames": [
"cf[10101]",
"New custom field"
],
"custom": true,
"id": "customfield_10101",
"key": "customfield_10101",
"name": "New custom field",
"navigable": true,
"orderable": true,
"schema": {
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:project",
"customId": 10101,
"type": "project"
},
"searchable": true,
"untranslatedName": "New custom field"
}
Deletes a custom field. The custom field is deleted whether it is in the trash or not. See Edit or delete a custom field for more information on trashing and deleting custom fields.
This operation is asynchronous. Follow the location
link in the
response to determine the status of the task and use Get
task to obtain subsequent updates.
Permissions required: Administer Jira global permission.
The ID of a custom field.
Returns a paginated list of the contexts a field is used in. Deprecated, use Get custom field contexts.
Permissions required: Administer Jira global permission.
The ID of the field to return contexts for.
Optional
maxThe maximum number of items to return per page.
Optional
startThe index of the first item to return in a page of results (page offset).
Returned if the request is successful.
example:
{
"isLast": false,
"maxResults": 1,
"startAt": 0,
"total": 5,
"values": [
{
"id": 10001,
"name": "Default Context"
}
]
}
Returns system and custom issue fields according to the following rules:
This operation can be accessed anonymously.
Permissions required: None.
Returned if the request is successful.
example:
[
{
"clauseNames": [
"description"
],
"custom": false,
"id": "description",
"name": "Description",
"navigable": true,
"orderable": true,
"schema": {
"system": "description",
"type": "string"
},
"searchable": true
},
{
"clauseNames": [
"summary"
],
"custom": false,
"id": "summary",
"key": "summary",
"name": "Summary",
"navigable": true,
"orderable": true,
"schema": {
"system": "summary",
"type": "string"
},
"searchable": true
}
]
Returns a paginated list of fields for Classic Jira projects. The list can include:
id
query
id
and query
Use type
must be set to custom
to show custom fields only.
Permissions required: Administer Jira global permission.
Optional
expand?: stringUse expand to include additional information in the response. This parameter accepts a comma-separated list. Expand options include:
key
returns the key for each fieldstableId
returns the stableId for each fieldlastUsed
returns the date when the value of the field last changedscreensCount
returns the number of screens related to a fieldcontextsCount
returns the number of contexts related to a fieldisLocked
returns information about whether the field is lockedsearcherKey
returns the searcher key for each custom fieldOptional
id?: string[]The IDs of the custom fields to return or, where query
is specified, filter.
Optional
maxThe maximum number of items to return per page.
Optional
orderOrder the results by:
contextsCount
sorts by the number of contexts related to a fieldlastUsed
sorts by the date when the value of the field last changedname
sorts by the field namescreensCount
sorts by the number of screens related to a fieldOptional
query?: stringString used to perform a case-insensitive partial match with field names or descriptions.
Optional
startThe index of the first item to return in a page of results (page offset).
Optional
type?: ("custom" | "system")[]The type of fields to search.
Returned if the request is successful.
example:
{
"isLast": false,
"maxResults": 50,
"startAt": 0,
"total": 2,
"values": [
{
"id": "customfield_10000",
"name": "Approvers",
"schema": {
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:multiuserpicker",
"customId": 10000,
"items": "user",
"type": "array"
},
"description": "Contains users needed for approval. This custom field was created by Jira Service Desk.",
"key": "customfield_10000",
"stableId": "sfid:approvers",
"isLocked": true,
"searcherKey": "com.atlassian.jira.plugin.system.customfieldtypes:userpickergroupsearcher",
"screensCount": 2,
"contextsCount": 2,
"lastUsed": {
"type": "TRACKED",
"value": "2021-01-28T07:37:40.000+0000"
}
},
{
"id": "customfield_10001",
"name": "Change reason",
"schema": {
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:select",
"customId": 10001,
"type": "option"
},
"description": "Choose the reason for the change request",
"key": "customfield_10001",
"stableId": "sfid:change-reason",
"isLocked": false,
"searcherKey": "com.atlassian.jira.plugin.system.customfieldtypes:multiselectsearcher",
"screensCount": 2,
"contextsCount": 2,
"projectsCount": 2,
"lastUsed": {
"type": "NOT_TRACKED"
}
}
]
}
Returns a paginated list of fields in the trash. The list may be restricted to fields whose field name or description partially match a string.
Only custom fields can be queried, type
must be set to custom
.
Permissions required: Administer Jira global permission.
Optional
expand?: Optional
id?: string[]Optional
maxThe maximum number of items to return per page.
Optional
orderOrder the results by a field:
name
sorts by the field nametrashDate
sorts by the date the field was moved to the trashplannedDeletionDate
sorts by the planned deletion dateOptional
query?: stringString used to perform a case-insensitive partial match with field names or descriptions.
Optional
startThe index of the first item to return in a page of results (page offset).
Returned if the request is successful.
example:
{
"isLast": false,
"maxResults": 50,
"startAt": 0,
"total": 1,
"values": [
{
"id": "customfield_10000",
"name": "Approvers",
"schema": {
"custom": "com.atlassian.jira.plugin.system.customfieldtypes:multiuserpicker",
"customId": 10003,
"type": "array"
},
"description": "Contains users needed for approval. This custom field was created by Jira Service Desk.",
"key": "customfield_10003",
"trashedDate": "2022-10-06T07:32:47.000+0000",
"trashedBy": {
"accountId": "5b10a2844c20165700ede21g",
"active": true,
"avatarUrls": {
"16x16": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16",
"24x24": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24",
"32x32": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32",
"48x48": "https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48"
},
"displayName": "Mia Krystof",
"emailAddress": "mia@example.com",
"self": "https://your-domain.atlassian.net/rest/api/3/user?accountId=5b10a2844c20165700ede21g",
"timeZone": "Australia/Sydney"
},
"plannedDeletionDate": "2022-10-24T07:32:47.000+0000"
}
]
}
Restores a custom field from trash. See Edit or delete a custom field for more information on trashing and deleting custom fields.
Permissions required: Administer Jira global permission.
The ID of a custom field.
Returned if the request is successful.
Moves a custom field to trash. See Edit or delete a custom field for more information on trashing and deleting custom fields.
Permissions required: Administer Jira global permission.
The ID of a custom field.
Returned if the request is successful.
Updates a custom field.
Permissions required: Administer Jira global permission.
The ID of the custom field.
The custom field update details.
Returned if the request is successful.
Protected
Static
initialize
This resource represents issue fields, both system and custom fields. Use it to get fields, field configurations, and create custom fields.
See
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields