public class IssueFieldOptionApi extends Object
| Constructor and Description |
|---|
IssueFieldOptionApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<IssueFieldOption> |
createIssueFieldOption(String fieldKey,
IssueFieldOptionCreateBean requestBody,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Create issue field option
Creates an option for a select list issue field.
|
io.reactivex.Single<Object> |
deleteIssueFieldOption(String fieldKey,
Long optionId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete issue field option
Deletes an option from a select list issue field.
|
io.reactivex.Single<PageBeanIssueFieldOption> |
getAllIssueFieldOptions(String fieldKey,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get all issue field options
Returns all options defined for a select list issue field.
|
io.reactivex.Single<IssueFieldOption> |
getIssueFieldOption(String fieldKey,
Long optionId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get issue field option
Returns an option from a select list issue field.
|
io.reactivex.Single<PageBeanIssueFieldOption> |
getSelectableIssueFieldOptions(String fieldKey,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<Long> projectId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get selectable issue field options
Returns options defined for a select list issue field that can be viewed and selected by the user.
|
io.reactivex.Single<PageBeanIssueFieldOption> |
getVisibleIssueFieldOptions(String fieldKey,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<Long> projectId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get visible issue field options
Returns options defined for a select list issue field that can be viewed by the user.
|
io.reactivex.Completable |
replaceIssueFieldOption(String fieldKey,
Long optionId,
Optional<Long> replaceWith,
Optional<String> jql,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Replace issue field option
Deselects an issue-field select-list option from all issues where it is selected.
|
io.reactivex.Single<IssueFieldOption> |
updateIssueFieldOption(String fieldKey,
Long optionId,
IssueFieldOption issueFieldOption,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Update issue field option
Updates or creates an option for a select list issue field.
|
public IssueFieldOptionApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<IssueFieldOption> createIssueFieldOption(String fieldKey, IssueFieldOptionCreateBean requestBody, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Creates an option for a select list issue field.
Note that this operation cannot be used with the built-in custom fields. It only works with issue fields added by Connect apps, as described above.
Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.
fieldKey - The field key is specified in the following format: $(app-key)\\_\\_$(field-key). For example, example-add-on\\_\\_example-issue-field.
(required)requestBody - (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Object> deleteIssueFieldOption(String fieldKey, Long optionId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Deletes an option from a select list issue field.
Note that this operation cannot be used with the built-in custom fields. It only works with issue fields added by Connect apps, as described above.
Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.
fieldKey - The field key is specified in the following format: $(app-key)\\_\\_$(field-key). For example, example-add-on\\_\\_example-issue-field.
(required)optionId - The ID of the option to be deleted.
(required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PageBeanIssueFieldOption> getAllIssueFieldOptions(String fieldKey, Optional<Long> startAt, Optional<Integer> maxResults, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns all options defined for a select list issue field. A select list issue field is a type of issue field that allows a user to select n value from a list of options.
Note that this operation cannot be used with the built-in custom fields. It only works with issue fields added by Connect apps, as described above.
Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.
fieldKey - The field key is specified in the following format: $(app-key)\\_\\_$(field-key). For example, example-add-on\\_\\_example-issue-field.
(required)startAt - The index of the first item to return in a page of results (page offset).
(optional, default to 0l)maxResults - The maximum number of items to return per page. The maximum is 100.
restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<IssueFieldOption> getIssueFieldOption(String fieldKey, Long optionId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns an option from a select list issue field.
Note that this operation cannot be used with the built-in custom fields. It only works with issue fields added by Connect apps, as described above.
Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.
fieldKey - The field key is specified in the following format: $(app-key)\\_\\_$(field-key). For example, example-add-on\\_\\_example-issue-field.
(required)optionId - The ID of the option to be returned.
(required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PageBeanIssueFieldOption> getSelectableIssueFieldOptions(String fieldKey, Optional<Long> startAt, Optional<Integer> maxResults, Optional<Long> projectId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns options defined for a select list issue field that can be viewed and selected by the user.
Note that this operation cannot be used with the built-in custom fields. It only works with issue fields added by Connect apps, as described above.
Permissions required: Permission to access Jira.
fieldKey - The field key is specified in the following format: $(app-key)\\_\\_$(field-key). For example, example-add-on\\_\\_example-issue-field.
(required)startAt - The index of the first item to return in a page of results (page offset).
(optional, default to 0l)maxResults - The maximum number of items to return per page. The maximum is 100.
projectId - Filters the results to options that are only available in the specified project.
(optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<PageBeanIssueFieldOption> getVisibleIssueFieldOptions(String fieldKey, Optional<Long> startAt, Optional<Integer> maxResults, Optional<Long> projectId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns options defined for a select list issue field that can be viewed by the user.
Note that this operation cannot be used with the built-in custom fields. It only works with issue fields added by Connect apps, as described above.
Permissions required: Permission to access Jira.
fieldKey - The field key is specified in the following format: $(app-key)\\_\\_$(field-key). For example, example-add-on\\_\\_example-issue-field.
(required)startAt - The index of the first item to return in a page of results (page offset).
(optional, default to 0l)maxResults - The maximum number of items to return per page. The maximum is 100.
projectId - Filters the results to options that are only available in the specified project.
(optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Completable replaceIssueFieldOption(String fieldKey, Long optionId, Optional<Long> replaceWith, Optional<String> jql, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
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.
This is an asynchronous operation. The response object contains a link to the long-running task.
Note that this operation cannot be used with the built-in custom fields. It only works with issue fields added by Connect apps, as described above.
Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.
fieldKey - The field key is specified in the following format: $(app-key)\\_\\_$(field-key). For example, example-add-on\\_\\_example-issue-field.
(required)optionId - The ID of the option to be deselected.
(required)replaceWith - The ID of the option that will replace the currently selected option.
(optional)jql - A JQL query that specifies the issues to be updated. For example, project=10000.
(optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<IssueFieldOption> updateIssueFieldOption(String fieldKey, Long optionId, IssueFieldOption issueFieldOption, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
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 cannot be used with the built-in custom fields. It only works with issue fields added by Connect apps, as described above.
Permissions required: Administer Jira global permission. Jira permissions are not required for the app providing the field.
fieldKey - The field key is specified in the following format: $(app-key)\\_\\_$(field-key). For example, example-add-on\\_\\_example-issue-field.
(required)optionId - The ID of the option to be updated.
(required)issueFieldOption - (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2021 Everit Kft.. All rights reserved.