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.Single<PageBeanContext> |
getContextsForField(String fieldId,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get contexts for a field
Returns a [paginated](#pagination) list of the contexts a field is used in.
|
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.
|
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.Single<PageBeanContext> getContextsForField(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. IDs should be provided in the format customfield_XXXXX.` (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). (optional)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.