public class IssueCustomFieldOptionsApi extends Object
| Constructor and Description |
|---|
IssueCustomFieldOptionsApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<Object> |
createCustomFieldOptions(Long fieldId,
BulkCreateCustomFieldOptionRequest bulkCreateCustomFieldOptionRequest,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Create custom field options
Creates options and, where the custom select field is of the type *Select List (cascading)*, cascading options for a custom select field.
|
io.reactivex.Completable |
deleteCustomFieldOption(String fieldId,
Long contextId,
Long optionId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete custom field option (context)
Deletes a custom field option.
|
io.reactivex.Single<CustomFieldOption> |
getCustomFieldOption(String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get custom field option
Returns a custom field option.
|
io.reactivex.Single<PageBeanCustomFieldContextOption> |
getOptionsForContext(String fieldId,
Long contextId,
Optional<Long> optionId,
Optional<Boolean> onlyOptions,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get options for field (context)
Returns a [paginated](#pagination) list of all custom field option for a context.
|
io.reactivex.Single<PageBeanCustomFieldOptionDetails> |
getOptionsForField(Long fieldId,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get options for field
Returns a [paginated](#pagination) list of options and, where the custom select field is of the type *Select List (cascading)*, cascading options for custom select fields.
|
io.reactivex.Single<Object> |
reorderCustomFieldOptions(String fieldId,
Long contextId,
OrderOfCustomFieldOptions orderOfCustomFieldOptions,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Reorder options (context)
Changes the order of custom field options or cascading options in a context.
|
io.reactivex.Single<Object> |
updateCustomFieldOptions(Long fieldId,
UpdateCustomFieldOption updateCustomFieldOption,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Update custom field options
Updates the options on a custom select field.
|
public IssueCustomFieldOptionsApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<Object> createCustomFieldOptions(Long fieldId, BulkCreateCustomFieldOptionRequest bulkCreateCustomFieldOptionRequest, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. Note: This is the numeric part of the of the field ID. For example, for a field with the ID *customfield\\_10075* use *10075*. (required)bulkCreateCustomFieldOptionRequest - (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.Completable deleteCustomFieldOption(String fieldId, Long contextId, Long optionId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. IDs should be provided in the format *customfield\\_XXXXX*. (required)contextId - The ID of the context from which an option should be deleted. (required)optionId - The ID of the option to delete. (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<CustomFieldOption> getCustomFieldOption(String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the custom field option. (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<PageBeanCustomFieldContextOption> getOptionsForContext(String fieldId, Long contextId, Optional<Long> optionId, Optional<Boolean> onlyOptions, Optional<Long> startAt, Optional<Integer> maxResults, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. IDs should be provided in the format *customfield\\_XXXXX*. (required)contextId - The ID of the context. (required)optionId - The ID of the option. (optional)onlyOptions - Whether only options are returned. (optional, default to false)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. (optional, default to 1000)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<PageBeanCustomFieldOptionDetails> getOptionsForField(Long fieldId, Optional<Long> startAt, Optional<Integer> maxResults, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. Note: This is the numeric part of the of the field ID. For example, for a field with the ID *customfield\\_10075* use *10075*. (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. (optional, default to 1000)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> reorderCustomFieldOptions(String fieldId, Long contextId, OrderOfCustomFieldOptions orderOfCustomFieldOptions, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. IDs should be provided in the format *customfield\\_XXXXX*. (required)contextId - The ID of the context. (required)orderOfCustomFieldOptions - (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> updateCustomFieldOptions(Long fieldId, UpdateCustomFieldOption updateCustomFieldOption, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. Note: This is the numeric part of the of the field ID. For example, for a field with the ID *customfield\\_10075* use *10075*. (required)updateCustomFieldOption - (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.