public class IssueFieldsApi extends Object
| Constructor and Description |
|---|
IssueFieldsApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<FieldDetails> |
createCustomField(CustomFieldDefinitionJsonBean customFieldDefinitionJsonBean,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Create custom field
Creates a custom field.
|
io.reactivex.Completable |
deleteCustomField(String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete custom field
Deletes a custom field.
|
io.reactivex.Single<PageBeanContext> |
getContextsForFieldDeprecated(String fieldId,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Deprecated.
|
io.reactivex.Single<List<FieldDetails>> |
getFields(Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get fields
Returns system and custom issue fields according to the following rules: * Fields that cannot be added to the issue navigator are always returned
|
io.reactivex.Single<PageBeanField> |
getFieldsPaginated(Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<List<String>> type,
Optional<List<String>> id,
Optional<String> query,
Optional<String> orderBy,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get fields paginated
Returns a [paginated](#pagination) list of fields for Classic Jira projects.
|
io.reactivex.Single<PageBeanField> |
getTrashedFieldsPaginated(Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<List<String>> id,
Optional<String> query,
Optional<String> expand,
Optional<String> orderBy,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get fields in trash paginated
Returns a [paginated](#pagination) list of fields in the trash.
|
io.reactivex.Single<Object> |
restoreCustomField(String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Restore custom field from trash
Restores a custom field from trash.
|
io.reactivex.Single<Object> |
trashCustomField(String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Move custom field to trash
Moves a custom field to trash.
|
io.reactivex.Single<Object> |
updateCustomField(String fieldId,
UpdateCustomFieldDetails updateCustomFieldDetails,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Update custom field
Updates a custom field.
|
public IssueFieldsApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<FieldDetails> createCustomField(CustomFieldDefinitionJsonBean customFieldDefinitionJsonBean, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
customFieldDefinitionJsonBean - Definition of the custom field to be created (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 deleteCustomField(String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of a custom field. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
@Deprecated public io.reactivex.Single<PageBeanContext> getContextsForFieldDeprecated(String fieldId, Optional<Long> startAt, Optional<Integer> maxResults, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the field to return contexts for. (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 20)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<List<FieldDetails>> getFields(Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
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<PageBeanField> getFieldsPaginated(Optional<Long> startAt, Optional<Integer> maxResults, Optional<List<String>> type, Optional<List<String>> id, Optional<String> query, Optional<String> orderBy, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
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 50)type - The type of fields to search. (optional, default to new ArrayList<>())id - The IDs of the custom fields to return or, where `query` is specified, filter. (optional, default to new ArrayList<>())query - String used to perform a case-insensitive partial match with field names or descriptions. (optional)orderBy - [Order](#ordering) the results by a field: * `contextsCount` sorts by the number of contexts related to a field * `lastUsed` sorts by the date when the value of the field last changed * `name` sorts by the field name * `screensCount` sorts by the number of screens related to a field (optional)expand - Use [expand](#expansion) to include additional information in the response. This parameter accepts a comma-separated list. Expand options include: * `key` returns the key for each field * `lastUsed` returns the date when the value of the field last changed * `screensCount` returns the number of screens related to a field * `contextsCount` returns the number of contexts related to a field * `isLocked` returns information about whether the field is [locked](https://confluence.atlassian.com/x/ZSN7Og) * `searcherKey` returns the searcher key for each custom field (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<PageBeanField> getTrashedFieldsPaginated(Optional<Long> startAt, Optional<Integer> maxResults, Optional<List<String>> id, Optional<String> query, Optional<String> expand, Optional<String> orderBy, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
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 50)id - (optional, default to new ArrayList<>())query - String used to perform a case-insensitive partial match with field names or descriptions. (optional)expand - (optional)orderBy - [Order](#ordering) the results by a field: * `name` sorts by the field name * `trashDate` sorts by the date the field was moved to the trash * `plannedDeletionDate` sorts by the planned deletion date (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<Object> restoreCustomField(String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of a custom field. (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> trashCustomField(String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of a custom field. (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> updateCustomField(String fieldId, UpdateCustomFieldDetails updateCustomFieldDetails, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. (required)updateCustomFieldDetails - The custom field update details. (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–2023 Everit Kft.. All rights reserved.