Class CustomFieldDefinition
java.lang.Object
com.atlassian.jira.bc.customfield.CustomFieldDefinition
The CustomFIeldDefinition class is a builder that allows you to build the definition of custom field. This definition
should be validated by
The outcome of validation is
invalid reference
CustomFieldService#validateCreate(com.atlassian.crowd.embedded.api.User, CustomFieldDefinition)
CreateValidationResult which is a validated definition
of custom field which can now be created using
invalid reference
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
- Since:
- v6.0
-
Method Details
-
getCfType
-
getName
-
getDescription
-
getSearcherKey
-
isUseDefaultSearcher
public boolean isUseDefaultSearcher() -
getProjectIds
-
getIssueTypeIds
-
isGlobal
public boolean isGlobal() -
isAllIssueTypes
public boolean isAllIssueTypes() -
builder
-