public class IssueCustomFieldContextsApi extends Object
| Constructor and Description |
|---|
IssueCustomFieldContextsApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<Object> |
addIssueTypesToContext(String fieldId,
Long contextId,
IssueTypeIDs issueTypeIDs,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Add issue types to context
Adds issue types to a custom field context, appending the issue types to the issue types list.
|
io.reactivex.Single<Object> |
assignProjectsToCustomFieldContext(String fieldId,
Long contextId,
ProjectIds projectIds,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Assign custom field context to projects
Assigns a custom field context to projects.
|
io.reactivex.Single<CreateCustomFieldContext> |
createCustomFieldContext(String fieldId,
CreateCustomFieldContext createCustomFieldContext,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Create custom field context
Creates a custom field context.
|
io.reactivex.Single<Object> |
deleteCustomFieldContext(String fieldId,
Long contextId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete custom field context
Deletes a [ custom field context](https://confluence.atlassian.com/adminjiracloud/what-are-custom-field-contexts-991923859.html).
|
io.reactivex.Single<PageBeanCustomFieldContext> |
getContextsForField(String fieldId,
Optional<Boolean> isAnyIssueType,
Optional<Boolean> isGlobalContext,
Optional<List<Long>> contextId,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get custom field contexts
Returns a [paginated](#pagination) list of [ contexts](https://confluence.atlassian.com/adminjiracloud/what-are-custom-field-contexts-991923859.html) for a custom field.
|
io.reactivex.Single<PageBeanContextForProjectAndIssueType> |
getCustomFieldContextsForProjectsAndIssueTypes(String fieldId,
ProjectIssueTypeMappings projectIssueTypeMappings,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get custom field contexts for projects and issue types
Returns a [paginated](#pagination) list of project and issue type mappings and, for each mapping, the ID of a [custom field context](https://confluence.atlassian.com/x/k44fOw) that applies to the project and issue type.
|
io.reactivex.Single<PageBeanCustomFieldContextDefaultValue> |
getDefaultValues(String fieldId,
Optional<List<Long>> contextId,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get custom field contexts default values
Returns a [paginated](#pagination) list of defaults for a custom field.
|
io.reactivex.Single<PageBeanIssueTypeToContextMapping> |
getIssueTypeMappingsForContexts(String fieldId,
Optional<List<Long>> contextId,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get issue types for custom field context
Returns a [paginated](#pagination) list of context to issue type mappings for a custom field.
|
io.reactivex.Single<PageBeanCustomFieldContextProjectMapping> |
getProjectContextMapping(String fieldId,
Optional<List<Long>> contextId,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get project mappings for custom field context
Returns a [paginated](#pagination) list of context to project mappings for a custom field.
|
io.reactivex.Single<Object> |
removeCustomFieldContextFromProjects(String fieldId,
Long contextId,
ProjectIds projectIds,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Remove custom field context from projects
Removes a custom field context from projects.
|
io.reactivex.Single<Object> |
removeIssueTypesFromContext(String fieldId,
Long contextId,
IssueTypeIDs issueTypeIDs,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Remove issue types from context
Removes issue types from a custom field context.
|
io.reactivex.Single<Object> |
setDefaultValues(String fieldId,
CustomFieldContextDefaultValueUpdate customFieldContextDefaultValueUpdate,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Set custom field contexts default values
Sets default for contexts of a custom field.
|
io.reactivex.Single<Object> |
updateCustomFieldContext(String fieldId,
Long contextId,
CustomFieldContextUpdateDetails customFieldContextUpdateDetails,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Update custom field context
Updates a [ custom field context](https://confluence.atlassian.com/adminjiracloud/what-are-custom-field-contexts-991923859.html).
|
public IssueCustomFieldContextsApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<Object> addIssueTypesToContext(String fieldId, Long contextId, IssueTypeIDs issueTypeIDs, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. (required)contextId - The ID of the context. (required)issueTypeIDs - (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> assignProjectsToCustomFieldContext(String fieldId, Long contextId, ProjectIds projectIds, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. (required)contextId - The ID of the context. (required)projectIds - (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<CreateCustomFieldContext> createCustomFieldContext(String fieldId, CreateCustomFieldContext createCustomFieldContext, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. (required)createCustomFieldContext - (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> deleteCustomFieldContext(String fieldId, Long contextId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. (required)contextId - The ID of the context. (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<PageBeanCustomFieldContext> getContextsForField(String fieldId, Optional<Boolean> isAnyIssueType, Optional<Boolean> isGlobalContext, Optional<List<Long>> contextId, Optional<Long> startAt, Optional<Integer> maxResults, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. (required)isAnyIssueType - Whether to return contexts that apply to all issue types. (optional)isGlobalContext - Whether to return contexts that apply to all projects. (optional)contextId - The list of context IDs. To include multiple contexts, separate IDs with ampersand: `contextId=10000&contextId=10001`. (optional, default to new ArrayList<>())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)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<PageBeanContextForProjectAndIssueType> getCustomFieldContextsForProjectsAndIssueTypes(String fieldId, ProjectIssueTypeMappings projectIssueTypeMappings, Optional<Long> startAt, Optional<Integer> maxResults, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. (required)projectIssueTypeMappings - The list of project and issue type mappings. (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 50)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<PageBeanCustomFieldContextDefaultValue> getDefaultValues(String fieldId, Optional<List<Long>> contextId, Optional<Long> startAt, Optional<Integer> maxResults, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field, for example `customfield\\_10000`. (required)contextId - The IDs of the contexts. (optional, default to new ArrayList<>())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)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<PageBeanIssueTypeToContextMapping> getIssueTypeMappingsForContexts(String fieldId, Optional<List<Long>> contextId, Optional<Long> startAt, Optional<Integer> maxResults, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. (required)contextId - The ID of the context. To include multiple contexts, provide an ampersand-separated list. For example, `contextId=10001&contextId=10002`. (optional, default to new ArrayList<>())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)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<PageBeanCustomFieldContextProjectMapping> getProjectContextMapping(String fieldId, Optional<List<Long>> contextId, Optional<Long> startAt, Optional<Integer> maxResults, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field, for example `customfield\\_10000`. (required)contextId - The list of context IDs. To include multiple context, separate IDs with ampersand: `contextId=10000&contextId=10001`. (optional, default to new ArrayList<>())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)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> removeCustomFieldContextFromProjects(String fieldId, Long contextId, ProjectIds projectIds, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. (required)contextId - The ID of the context. (required)projectIds - (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> removeIssueTypesFromContext(String fieldId, Long contextId, IssueTypeIDs issueTypeIDs, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. (required)contextId - The ID of the context. (required)issueTypeIDs - (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> setDefaultValues(String fieldId, CustomFieldContextDefaultValueUpdate customFieldContextDefaultValueUpdate, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. (required)customFieldContextDefaultValueUpdate - (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> updateCustomFieldContext(String fieldId, Long contextId, CustomFieldContextUpdateDetails customFieldContextUpdateDetails, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
fieldId - The ID of the custom field. (required)contextId - The ID of the context. (required)customFieldContextUpdateDetails - (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.