public class CustomFieldResource extends Object
Constructor and Description |
---|
CustomFieldResource(JiraAuthenticationContext jiraAuthenticationContext,
CustomFieldBeanFactory customFieldBeanFactory,
OptionsManager optionsManager,
ContextUriInfo contextUriInfo,
com.atlassian.event.api.EventPublisher eventPublisher,
I18nHelper i18nHelper) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
bulkDeleteCustomFields(List<String> customFieldsIds) |
static javax.ws.rs.core.Response |
createErrorResponse(ServiceResult result) |
javax.ws.rs.core.Response |
getCustomFieldOptions(long customFieldId,
List<Long> projectIds,
List<String> issueTypeIds,
String query,
int maxResults)
Returns custom field's options defined in a given context composed of projects and issue types.
|
javax.ws.rs.core.Response |
getCustomFields(long startAt,
int maxResults,
String searchString,
List<String> projectIds,
List<String> screenIds,
List<String> types,
String sortOrder,
String sortColumn,
Long lastValueUpdate) |
public CustomFieldResource(JiraAuthenticationContext jiraAuthenticationContext, CustomFieldBeanFactory customFieldBeanFactory, OptionsManager optionsManager, ContextUriInfo contextUriInfo, com.atlassian.event.api.EventPublisher eventPublisher, I18nHelper i18nHelper)
public javax.ws.rs.core.Response getCustomFields(long startAt, int maxResults, String searchString, List<String> projectIds, List<String> screenIds, List<String> types, String sortOrder, String sortColumn, Long lastValueUpdate)
public javax.ws.rs.core.Response bulkDeleteCustomFields(List<String> customFieldsIds)
@ExperimentalApi public javax.ws.rs.core.Response getCustomFieldOptions(long customFieldId, List<Long> projectIds, List<String> issueTypeIds, String query, int maxResults)
If the projects and issue types match more than one context or the context for such a combination does not exist then no options are returned.
customFieldId
- id of a custom fieldprojectIds
- a list of projects in a contextissueTypeIds
- a list of issue types in a contextquery
- a string used to filter options. An option matches the query if any word in option's name starts with the given query.maxResults
- a limit of results.maxResults
with the total number of options meeting the query criteria or an error message.public static javax.ws.rs.core.Response createErrorResponse(ServiceResult result)
Copyright © 2002-2022 Atlassian. All Rights Reserved.