Interface FieldService


public interface FieldService
Field service
  • Method Details

    • getTextFieldBuilder

      TextFieldBuilder getTextFieldBuilder()
      Get a text field builder.
      Returns:
      the text field builder
    • create

      TextField create(TextFieldBuilder builder)
      Create a text field.
      Parameters:
      builder - the text builder
      Returns:
      the text field
    • getTextMultipleFieldBuilder

      TextMultipleFieldBuilder getTextMultipleFieldBuilder()
      Get text multiple field builder.
      Returns:
      the text multiple field builder
    • create

      Create a text multiple field.
      Parameters:
      builder - the text multiple builder
      Returns:
      the text multiple field
    • getNumberFieldBuilder

      NumberFieldBuilder getNumberFieldBuilder()
      Get number field builder.
      Returns:
      the number field builder
    • create

      Create a number field.
      Parameters:
      builder - the number field builder
      Returns:
      the number field
    • getDurationFieldBuilder

      DurationFieldBuilder getDurationFieldBuilder()
      Get duration field builder.
      Returns:
      the duration field builder
    • create

      Create a duration field.
      Parameters:
      builder - the duration field builder
      Returns:
      the duration field
    • getDateFieldBuilder

      DateFieldBuilder getDateFieldBuilder()
      Get date field builder.
      Returns:
      the date field builder
    • create

      DateField create(DateFieldBuilder builder)
      Create a date field.
      Parameters:
      builder - the date field builder
      Returns:
      the date field
    • getDateTimeFieldBuilder

      DateTimeFieldBuilder getDateTimeFieldBuilder()
      Get date time field builder.
      Returns:
      the date time field builder
    • create

      Create a date time field.
      Parameters:
      builder - the date time field builder
      Returns:
      the date time field
    • getUserFieldBuilder

      UserFieldBuilder getUserFieldBuilder()
      Get user field builder.
      Returns:
      the user field builder
    • create

      UserField create(UserFieldBuilder builder)
      Create a user field.
      Parameters:
      builder - the user field builder
      Returns:
      the user field
    • getUserMultipleFieldBuilder

      UserMultipleFieldBuilder getUserMultipleFieldBuilder()
      Get user multiple field builder.
      Returns:
      the user multiple field builder
    • create

      Create a user multiple field.
      Parameters:
      builder - the user multiple field builder
      Returns:
      the user multiple field
    • getGroupFieldBuilder

      GroupFieldBuilder getGroupFieldBuilder()
      Get group field builder.
      Returns:
      the group field builder
    • create

      GroupField create(GroupFieldBuilder builder)
      Create a group field.
      Parameters:
      builder - the group field builder
      Returns:
      the group field
    • getGroupMultipleFieldBuilder

      GroupMultipleFieldBuilder getGroupMultipleFieldBuilder()
      Get group multiple field builder.
      Returns:
      the group multiple field builder
    • create

      Create a group multiple field.
      Parameters:
      builder - the group multiple field builder
      Returns:
      the group multiple field
    • getProjectFieldBuilder

      ProjectFieldBuilder getProjectFieldBuilder()
      Get project field builder.
      Returns:
      the project field builder
    • create

      Create a project field.
      Parameters:
      builder - the project field builder
      Returns:
      the project field
    • getProjectMultipleFieldBuilder

      ProjectMultipleFieldBuilder getProjectMultipleFieldBuilder()
      Get project multiple field builder.
      Returns:
      the project multiple field builder
    • create

      Create a project multiple field.
      Parameters:
      builder - the project multiple field builder
      Returns:
      the project multiple field
    • getFormulaFieldBuilder

      FormulaFieldBuilder getFormulaFieldBuilder()
      Get formula field builder.
      Returns:
      the formula field builder
    • create

      Create a formula field.
      Parameters:
      builder - the formula field builder
      Returns:
      the formula field
    • getScriptFieldBuilder

      ScriptFieldBuilder getScriptFieldBuilder()
      Get script field builder.
      Returns:
      the script field builder
    • create

      Create a script field.
      Parameters:
      builder - the script field builder
      Returns:
      the script field
    • getStatusFieldBuilder

      StatusFieldBuilder getStatusFieldBuilder()
      Get status field builder.
      Returns:
      the status field builder
    • create

      Create a status field.
      Parameters:
      builder - the status field builder
      Returns:
      the status field
    • getPriorityFieldBuilder

      PriorityFieldBuilder getPriorityFieldBuilder()
      Get priority field builder.
      Returns:
      the priority field builder
    • create

      Create a priority field.
      Parameters:
      builder - the priority field builder
      Returns:
      the priority field
    • getListFieldBuilder

      ListParentFieldBuilder getListFieldBuilder()
      Get list field builder.
      Returns:
      the list field builder
    • create

      Create a list field.
      Parameters:
      builder - the list field builder
      Returns:
      the list field
    • getListMultipleFieldBuilder

      ListMultipleFieldBuilder getListMultipleFieldBuilder()
      Get list multiple field builder.
      Returns:
      the list multiple field builder
    • create

      Create a list multiple field.
      Parameters:
      builder - the list multiple field builder
      Returns:
      the list multiple field
    • getListExtFieldBuilder

      ListExtFieldBuilder getListExtFieldBuilder()
      Get list external field builder.
      Returns:
      the list external field builder
    • create

      Create a list external field.
      Parameters:
      builder - the list external field builder
      Returns:
      the list external field
    • getListExtMultipleFieldBuilder

      ListExtMultipleFieldBuilder getListExtMultipleFieldBuilder()
      Get list external multiple field builder.
      Returns:
      the list external multiple field builder
    • create

      Create a list ext multiple field.
      Parameters:
      builder - the list external field builder
      Returns:
      the list external multiple field
    • clone

      Field clone(Field field, String name)
      Clone a field.
      Parameters:
      field - the field to be cloned
      name - the name of the new field
      Returns:
      the field cloned
    • get

      List<Field> get()
      Get the list of fields.
      Returns:
      the list of fields.
    • get

      List<Field> get(Locale locale)
      Get the list of fields based on the language of the user.
      Parameters:
      locale - the locale
      Returns:
      the list of fields.
    • getStandardFields

      List<Field> getStandardFields()
      Get all fields without system
      Returns:
      list of fields
    • getSystemFields

      List<Field> getSystemFields()
      Get all system fields
      Returns:
      list of system fields
    • getSystemFields

      List<Field> getSystemFields(Locale locale)
      Get all system fields based on the language of the user
      Parameters:
      locale - the locale
      Returns:
      list of system fields
    • getCalculatedFields

      @Deprecated List<Field> getCalculatedFields()
      Deprecated.
      Deprecated. There are not any Calculated Fields. Get all calculated fields
      Returns:
      list of calculated fields
    • getStandardAndCalculatedFields

      @Deprecated List<Field> getStandardAndCalculatedFields()
      Deprecated.
      Deprecated. Use the following method: getStandardFields() Get all fields without system fields
      Returns:
      list of fields
    • getPredefinedFields

      List<Field> getPredefinedFields()
      Get all predefined fields
      Returns:
      list of predefined fields
    • get

      Field get(Integer id)
      Get the field by id.
      Parameters:
      id - the id of the field
      Returns:
      the field
    • get

      Field get(Integer id, Locale locale)
      Get the list of fields based on the user language
      Parameters:
      locale - the locale
      Returns:
      the list of fields.
    • get

      List<Field> get(String name)
      Get the field by name.
      Parameters:
      name - the name of the field
      Returns:
      the field
    • get

      List<Field> get(String name, Locale locale)
      Get the field by name.
      Parameters:
      name - the name of the field
      locale - the locale
      Returns:
      the field
    • getWithIgnoreCase

      List<Field> getWithIgnoreCase(String name)
      Get the field by name with ignore case
      Parameters:
      name - the name of the field
      Returns:
      the field
    • getWithIgnoreCase

      List<Field> getWithIgnoreCase(String name, Locale locale)
      Get the field by name with ignore case
      Parameters:
      name - the name of the field
      locale - the locale
      Returns:
      the field
    • get

      List<Field> get(com.atlassian.jira.user.ApplicationUser applicationUser, com.atlassian.jira.project.Project project)
      Get fields by application user
      Parameters:
      applicationUser - User to check view permissions in each field
      project - Project to get fields
      Returns:
      All fields with user permission in project
    • getByCustomFieldId

      Field getByCustomFieldId(Long customFieldId)
      Get by custom field id.
      Parameters:
      customFieldId - the custom field id of the field
      Returns:
      the field
    • update

      void update(Field field)
      Update the field.
      Parameters:
      field - the field to be updated
    • delete

      void delete(Field field)
      Delete the field.
      Parameters:
      field - the field of the field
    • getExternalFieldsUsedConnection

      List<ListExtField> getExternalFieldsUsedConnection(int connectionId)
      Get the list of the External fields that is used by one connection
      Parameters:
      connectionId - id of the connection
      Returns:
      the list of the External fields
    • getHierarchy

      Hierarchy getHierarchy(ListField field)
      Get the complete hierarchy of a field
      Parameters:
      field - the field to get the hierarchy
      Returns:
      an object with the complete hierarchy