Internal
Create a new instance of the service.
Creates an option for a select list issue field.
Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource.
Each field can have a maximum of 10000 options, and each option can have a maximum of 10000 scopes.
Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.
The field key is specified in the following format:
$(app-key)__$(field-key). For example,
example-add-on__example-issue-field. To determine the fieldKey
value, do
one of the following:
jiraIssueFields
module. app-key can
also be found in the app listing in the Atlassian Universal Plugin Manager.key
. For example, "key": "teams-add-on__team-issue-field"
Returned if the request is successful.
example:
{
"id": 1,
"value": "Team 1",
"properties": {
"leader": {
"name": "Leader Name",
"email": "lname@example.com"
},
"members": 42,
"description": "The team's description",
"founded": "2016-06-06"
},
"config": {
"scope": {
"projects": [],
"projects2": [
{
"id": 1001,
"attributes": [
"notSelectable"
]
},
{
"id": 1002,
"attributes": [
"notSelectable"
]
}
],
"global": {}
},
"attributes": []
}
}
Deletes an option from a select list issue field.
Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource.
Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.
The field key is specified in the following format:
$(app-key)__$(field-key). For example,
example-add-on__example-issue-field. To determine the fieldKey
value, do
one of the following:
jiraIssueFields
module. app-key can
also be found in the app listing in the Atlassian Universal Plugin Manager.key
. For example, "key": "teams-add-on__team-issue-field"
The ID of the option to be deleted.
Returned if the field option is deleted.
Returns a paginated list of all the options of a select list issue field. A select list issue field is a type of issue field that enables a user to select a value from a list of options.
Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource.
Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.
The field key is specified in the following format:
$(app-key)__$(field-key). For example,
example-add-on__example-issue-field. To determine the fieldKey
value, do
one of the following:
jiraIssueFields
module. app-key can
also be found in the app listing in the Atlassian Universal Plugin Manager.key
. For example, "key": "teams-add-on__team-issue-field"
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,
"nextPage": "https://your-domain.atlassian.net/rest/api/3/field/fieldKey/option?startAt=1&maxResults=1",
"self": "https://your-domain.atlassian.net/rest/api/3/field/fieldKey/option?startAt=0&maxResults=1",
"startAt": 0,
"total": 10,
"values": [
{
"id": 1,
"value": "Team 1",
"properties": {
"leader": {
"name": "Leader Name",
"email": "lname@example.com"
},
"members": 42,
"description": "The team's description",
"founded": "2016-06-06"
},
"config": {
"scope": {
"projects": [],
"projects2": [
{
"id": 1001,
"attributes": [
"notSelectable"
]
},
{
"id": 1002,
"attributes": [
"notSelectable"
]
}
],
"global": {}
},
"attributes": []
}
}
]
}
Returns an option from a select list issue field.
Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource.
Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.
The field key is specified in the following format:
$(app-key)__$(field-key). For example,
example-add-on__example-issue-field. To determine the fieldKey
value, do
one of the following:
jiraIssueFields
module. app-key can
also be found in the app listing in the Atlassian Universal Plugin Manager.key
. For example, "key": "teams-add-on__team-issue-field"
The ID of the option to be returned.
Returned if the requested option is returned.
example:
{
"id": 1,
"value": "Team 1",
"properties": {
"leader": {
"name": "Leader Name",
"email": "lname@example.com"
},
"members": 42,
"description": "The team's description",
"founded": "2016-06-06"
},
"config": {
"scope": {
"projects": [],
"projects2": [
{
"id": 1001,
"attributes": [
"notSelectable"
]
},
{
"id": 1002,
"attributes": [
"notSelectable"
]
}
],
"global": {}
},
"attributes": []
}
}
Returns a paginated list of options for a select list issue field that can be viewed and selected by the user.
Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource.
Permissions required: Permission to access Jira.
The field key is specified in the following format:
$(app-key)__$(field-key). For example,
example-add-on__example-issue-field. To determine the fieldKey
value, do
one of the following:
jiraIssueFields
module. app-key can
also be found in the app listing in the Atlassian Universal Plugin Manager.key
. For example, "key": "teams-add-on__team-issue-field"
Optional
maxThe maximum number of items to return per page.
Optional
projectFilters the results to options that are only available in the specified project.
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,
"nextPage": "https://your-domain.atlassian.net/rest/api/3/field/fieldKey/option/suggestions?startAt=1&maxResults=1",
"self": "https://your-domain.atlassian.net/rest/api/3/field/fieldKey/option/suggestions?startAt=0&maxResults=1",
"startAt": 0,
"total": 10,
"values": [
{
"id": 1,
"value": "Team 1",
"properties": {
"leader": {
"name": "Leader Name",
"email": "lname@example.com"
},
"members": 42,
"description": "The team's description",
"founded": "2016-06-06"
}
}
]
}
Returns a paginated list of options for a select list issue field that can be viewed by the user.
Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource.
Permissions required: Permission to access Jira.
The field key is specified in the following format:
$(app-key)__$(field-key). For example,
example-add-on__example-issue-field. To determine the fieldKey
value, do
one of the following:
jiraIssueFields
module. app-key can
also be found in the app listing in the Atlassian Universal Plugin Manager.key
. For example, "key": "teams-add-on__team-issue-field"
Optional
maxThe maximum number of items to return per page.
Optional
projectFilters the results to options that are only available in the specified project.
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,
"nextPage": "https://your-domain.atlassian.net/rest/api/3/field/fieldKey/option/suggestions?startAt=1&maxResults=1",
"self": "https://your-domain.atlassian.net/rest/api/3/field/fieldKey/option/suggestions?startAt=0&maxResults=1",
"startAt": 0,
"total": 10,
"values": [
{
"id": 1,
"value": "Team 1",
"properties": {
"leader": {
"name": "Leader Name",
"email": "lname@example.com"
},
"members": 42,
"description": "The team's description",
"founded": "2016-06-06"
}
}
]
}
Deselects an issue-field select-list option from all issues where it is selected. A different option can be selected to replace the deselected option. The update can also be limited to a smaller set of issues by using a JQL query.
Connect and Forge app users with Administer Jira global
permission can override the screen
security configuration using overrideScreenSecurity
and
overrideEditableFlag
.
This is an asynchronous operation. The response object contains a link to the long-running task.
Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource.
Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.
The field key is specified in the following format:
$(app-key)__$(field-key). For example,
example-add-on__example-issue-field. To determine the fieldKey
value, do
one of the following:
jiraIssueFields
module. app-key can
also be found in the app listing in the Atlassian Universal Plugin Manager.key
. For example, "key": "teams-add-on__team-issue-field"
Optional
jql?: stringA JQL query that specifies the issues to be updated. For example, project=10000.
The ID of the option to be deselected.
Optional
overrideWhether screen security is overridden to enable uneditable fields to be edited. Available to Connect and Forge app users with Administer Jira global permission.
Optional
overrideWhether screen security is overridden to enable hidden fields to be edited. Available to Connect and Forge app users with admin permission.
Optional
replaceThe ID of the option that will replace the currently selected option.
Updates or creates an option for a select list issue field. This operation requires that the option ID is provided when creating an option, therefore, the option ID needs to be specified as a path and body parameter. The option ID provided in the path and body must be identical.
Note that this operation only works for issue field select list options added by Connect apps, it cannot be used with issue field select list options created in Jira or using operations from the Issue custom field options resource.
Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.
The field key is specified in the following format:
$(app-key)__$(field-key). For example,
example-add-on__example-issue-field. To determine the fieldKey
value, do
one of the following:
jiraIssueFields
module. app-key can
also be found in the app listing in the Atlassian Universal Plugin Manager.key
. For example, "key": "teams-add-on__team-issue-field"
The ID of the option to be updated.
Returned if the option is updated or created.
example:
{
"id": 1,
"value": "Team 1",
"properties": {
"leader": {
"name": "Leader Name",
"email": "lname@example.com"
},
"members": 42,
"description": "The team's description",
"founded": "2016-06-06"
},
"config": {
"scope": {
"projects": [],
"projects2": [
{
"id": 1001,
"attributes": [
"notSelectable"
]
},
{
"id": 1002,
"attributes": [
"notSelectable"
]
}
],
"global": {}
},
"attributes": []
}
}
Protected
Static
initialize
This resource represents custom issue field select list options created by a Connect app. See Issue custom field options to manipulate options created in Jira or using the REST API.
A select list issue field is a type of issue field that enables a user to select an option from a list. Use it to add, remove, and update the options of a select list issue field.
See
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-custom-field-options-apps-