Package com.atlassian.jira.issue
Interface IssueTextFieldCharacterLengthValidator
- All Known Implementing Classes:
DefaultIssueTextFieldCharacterLengthValidator
public interface IssueTextFieldCharacterLengthValidator
Text length issue validator to be used by issue objects to be created/edited with IssueManager.
Checks if issue text fields are within the jira character limit.
Summary field is not validated (hardlimited to 255 chars).
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Result of the validation. -
Method Summary
Modifier and TypeMethodDescriptionvalidateAllFields
(Issue issue) Validates length of text field against the "jira character limit".Validates length of modified text field against the "jira character limit".
-
Method Details
-
validateAllFields
@Nonnull IssueTextFieldCharacterLengthValidator.ValidationResult validateAllFields(@Nonnull Issue issue) Validates length of text field against the "jira character limit". Checks values of text system fields and custom field types marked withTextCustomFieldType
interface.- Parameters:
issue
- the issue to be validated- Returns:
- validation result
-
validateModifiedFields
@Nonnull IssueTextFieldCharacterLengthValidator.ValidationResult validateModifiedFields(@Nonnull MutableIssue issue) Validates length of modified text field against the "jira character limit". Checks values of text system fields and custom field types marked withTextCustomFieldType
interface.- Parameters:
issue
- the issue to be validated- Returns:
- validation result
-