@PublicApi public class CustomFieldDefinition extends Object
CustomFieldService#validateCreate(com.atlassian.crowd.embedded.api.User,
CustomFieldDefinition)
The outcome of validation is CreateValidationResult
which is a validated definition
of custom field which can now be created using CustomFieldService#validateCreate(com.atlassian.crowd.embedded.api.User,
CustomFieldDefinition)
Builder params: name name of the custom field description - description of the custom field cfType - key of the custom field type searcherKey - key to identify a searcher for the custom field projectIds - list of project id's in which custom field should be available issueTypeIds - list of issue types id's in which custom field should be available isGlobal - flag which overrides project id's. If set to true custom field is created in global context allIssueTypes - flag which overrides issue types id's. If set to true custom filed will be available for all issue types
Modifier and Type | Class and Description |
---|---|
static class |
CustomFieldDefinition.Builder |
Constructor and Description |
---|
CustomFieldDefinition()
Deprecated.
Use a
CustomFieldDefinition.Builder from builder() to create the definition. Since 6.1. |
Modifier and Type | Method and Description |
---|---|
static CustomFieldDefinition.Builder |
builder() |
String |
getCfType() |
String |
getDescription() |
List<String> |
getIssueTypeIds() |
String |
getName() |
List<Long> |
getProjectIds() |
String |
getSearcherKey() |
boolean |
isAllIssueTypes() |
boolean |
isGlobal() |
boolean |
isUseDefaultSearcher() |
@Deprecated public CustomFieldDefinition()
CustomFieldDefinition.Builder
from builder()
to create the definition. Since 6.1.public String getCfType()
public String getName()
public String getDescription()
public String getSearcherKey()
public boolean isUseDefaultSearcher()
public boolean isGlobal()
public boolean isAllIssueTypes()
public static CustomFieldDefinition.Builder builder()
Copyright © 2002-2021 Atlassian. All Rights Reserved.