Class FieldPredicates

java.lang.Object
com.atlassian.jira.issue.fields.util.FieldPredicates

@PublicApi public final class FieldPredicates extends Object
Some predicates that can be used to classify JIRA Field objects.
Since:
v4.1
  • Constructor Details

    • FieldPredicates

      public FieldPredicates()
  • Method Details

    • isCustomField

      public static Predicate<Field> isCustomField()
      Return a predicate that will return true if the input field is a custom field.
      Returns:
      a predicate that will return true if the input field is a custom field.
    • isDateField

      public static Predicate<Field> isDateField()
      Return a predicate that will return true if the input field is a date field.
      Returns:
      a predicate that will return true if the input field is a date field.
    • isUserField

      public static Predicate<Field> isUserField()
      Return a predicate that will return true if the input field is a user field.
      Returns:
      a predicate that will return true if the input field is a user field.
    • isCustomUserField

      public static Predicate<Field> isCustomUserField()
      Return a predicate that will return true if the input field is a user custom field.
      Returns:
      a predicate that will return true if the input field is a user custom field.
    • isCustomDateField

      public static Predicate<Field> isCustomDateField()
      Return a predicate that will return true if the input field is a date custom field.
      Returns:
      a predicate that will return true if the input field is a date custom field.
    • isStandardViewIssueCustomField

      public static Predicate<Field> isStandardViewIssueCustomField()
      Return a predicate that returns true for custom fields that should be displayed in the custom field section of the view issue screen. Some of the custom fields are not displayed in the custom field section of the view issue screen. For example, the date fields are now displayed in the date block rather than the custom field block.
      Returns:
      a predicate that returns true for custom fields that should be displayed in the custom field section of the view issue screen.