Get custom field contexts default values
GET
/rest/api/3/field/{fieldId}/context/defaultValue
Issue custom field contexts
contextId
, otherwise all values are returned. If no defaults are set for a context, nothing is returned.The returned object depends on type of the custom field:
CustomFieldContextDefaultValueDate
(type datepicker
) for date fields.CustomFieldContextDefaultValueDateTime
(type datetimepicker
) for date-time fields.CustomFieldContextDefaultValueSingleOption
(type option.single
) for single choice select lists and radio buttons.CustomFieldContextDefaultValueMultipleOption
(type option.multiple
) for multiple choice select lists and checkboxes.CustomFieldContextDefaultValueCascadingOption
(type option.cascading
) for cascading select lists.CustomFieldContextSingleUserPickerDefaults
(type single.user.select
) for single users.CustomFieldContextDefaultValueMultiUserPicker
(type multi.user.select
) for user lists.CustomFieldContextDefaultValueSingleGroupPicker
(type grouppicker.single
) for single choice group pickers.CustomFieldContextDefaultValueMultipleGroupPicker
(type grouppicker.multiple
) for multiple choice group pickers.CustomFieldContextDefaultValueURL
(type url
) for URLs.CustomFieldContextDefaultValueProject
(type project
) for project pickers.CustomFieldContextDefaultValueFloat
(type float
) for floats (floating-point numbers).CustomFieldContextDefaultValueLabels
(type labels
) for labels.CustomFieldContextDefaultValueTextField
(type textfield
) for text fields.CustomFieldContextDefaultValueTextArea
(type textarea
) for text area fields.CustomFieldContextDefaultValueReadOnly
(type readonly
) for read only (text) fields.CustomFieldContextDefaultValueMultipleVersion
(type version.multiple
) for single choice version pickers.CustomFieldContextDefaultValueSingleVersion
(type version.single
) for multiple choice version pickers.CustomFieldContextDefaultValueForgeStringFieldBean
(type forge.string
) for Forge string fields.CustomFieldContextDefaultValueForgeMultiStringFieldBean
(type forge.string.list
) for Forge string collection fields.CustomFieldContextDefaultValueForgeObjectFieldBean
(type forge.object
) for Forge object fields.CustomFieldContextDefaultValueForgeDateTimeFieldBean
(type forge.datetime
) for Forge date-time fields.CustomFieldContextDefaultValueForgeGroupFieldBean
(type forge.group
) for Forge group fields.CustomFieldContextDefaultValueForgeMultiGroupFieldBean
(type forge.group.list
) for Forge group collection fields.CustomFieldContextDefaultValueForgeNumberFieldBean
(type forge.number
) for Forge number fields.CustomFieldContextDefaultValueForgeUserFieldBean
(type forge.user
) for Forge user fields.CustomFieldContextDefaultValueForgeMultiUserFieldBean
(type forge.user.list
) for Forge user collection fields.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://jira.local:8080/jira/rest//rest/api/3/field//context/defaultValue'
Response Response Example
200 - Success
{
"maxResults": 50,
"startAt": 0,
"total": 3,
"isLast": true,
"values": [
{
"type": "option.single",
"contextId": "10100",
"optionId": "10001"
},
{
"type": "option.single",
"contextId": "10101",
"optionId": "10003"
},
{
"type": "option.single",
"contextId": "10103"
}
]
}
Request
Path Params
fieldId
stringÂ
required
customfield\_10000
.Query Params
contextId
array[string]
optional
startAt
integerÂ
optional
maxResults
integerÂ
optional
Responses
Modified at 2023-07-13 03:27:27